#include<iostream>
using namespace std;
void print();
int main()
{
    print();
    cout.put('\n');
}

void print()
{
    char c=getchar();
    if(c=='\n')
    {
        cout<<c;
    }
    else
    {
        print();
        cout<<c;
    }
}