#include<iostream>
using namespace std;
int main()
{
    char a[3];
    scanf("%s",a);
    cout<<a[2]<<a[1]<<a[0]<<endl;
    return 0;
}