#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main() {
	vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	reverse(v.begin(),v.end());
	for(auto& e : v)
	  cout << e << " ";
	return 0;
}