#include <iostream>
#include <string.h>
using namespace std;
int main ()
{
int N;
cin >> N;
string flock[N];
for (int i = 0; i < N; i++)
cin >> flock[i];
for (int i = N - 1; i >= 0; i--)
cout << flock[i];
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbiAoKSAKewoJaW50IE47CgljaW4gPj4gTjsKCXN0cmluZyBmbG9ja1tOXTsKCWZvciAoaW50IGkgPSAwOyBpIDwgTjsgaSsrKQoJCWNpbiA+PiBmbG9ja1tpXTsKCWZvciAoaW50IGkgPSBOIC0gMTsgaSA+PSAwOyBpLS0pCgkJY291dCA8PCBmbG9ja1tpXTsKCQoJcmV0dXJuIDA7Cn0=