#include<bits/stdc++.h> using namespace std; int main(){ char a[101]; gets(a); for(int i=strlen(a)-1;i>=0;i--) { cout<<a[i]; } return 0; }