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

int main() {
	
	const int size = 5;
	int a[size] = {1, 2, 3, 4, 5};
	
	
	std::reverse(&a[0], &a[0] + size);
	
	for (int i = 0; i < size; ++i) {
		cout << a[i] << " ";
	}
	
	
	// your code goes here
	return 0;
}