#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
using namespace std;
int main() {
    char str[21];
    int i, len;
    cin>>str;
    len = strlen(str);
    for (i = len-1; i >= 0; i--)
    	cout<<str[i];
    cout<<endl;
    return 0;
}