#include <iostream>
#include <cstring>
using namespace std;
#define boa_name_size 11
int main()
{
int N;
cin >> N;
char **flock = new char *[N]; // Создаем массив в N строк
for (int i = 0; i <= N; i++)
flock[i] = new char[boa_name_size]; // Под каждую строку выделяем массив в boa_name_size символов
for (int i = 0; i <= N; i++)
cin.getline(flock[i], boa_name_size);
for (int i = N; i > 0; i--)
cout << flock[i];
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCiNkZWZpbmUgYm9hX25hbWVfc2l6ZSAxMQoKaW50IG1haW4oKSAKewoJaW50IE47CgljaW4gPj4gTjsKCWNoYXIgKipmbG9jayA9IG5ldyBjaGFyICpbTl07IC8vINCh0L7Qt9C00LDQtdC8INC80LDRgdGB0LjQsiDQsiBOINGB0YLRgNC+0LoKCWZvciAoaW50IGkgPSAwOyBpIDw9IE47IGkrKykKCQlmbG9ja1tpXSA9IG5ldyBjaGFyW2JvYV9uYW1lX3NpemVdOyAvLyDQn9C+0LQg0LrQsNC20LTRg9GOINGB0YLRgNC+0LrRgyDQstGL0LTQtdC70Y/QtdC8INC80LDRgdGB0LjQsiDQsiBib2FfbmFtZV9zaXplINGB0LjQvNCy0L7Qu9C+0LIKCWZvciAoaW50IGkgPSAwOyBpIDw9IE47IGkrKykKCQljaW4uZ2V0bGluZShmbG9ja1tpXSwgYm9hX25hbWVfc2l6ZSk7Cglmb3IgKGludCBpID0gTjsgaSA+IDA7IGktLSkgCgkJY291dCA8PCBmbG9ja1tpXTsKCQoJcmV0dXJuIDA7Cn0=