#include <iostream>
using namespace std;
#define N 10000
struct s{
	string str;
};
int main(){
	int n;
	while(cin >>n){
		int i;
		struct s st[N];
		for (i = 0; i <n;i++){
			cin >> st[i].str;
		}
		for (i = n-1; i >=0;i--){
			cout <<st[i].str<<" ";
		}
	}
	
}