#include<bits/stdc++.h> using namespace std; char n[6]; int main(){ cin>>n; int m=sizeof(n); for(int i=m-1;i>=0;i--){ cout<<n[i]; } return 0; }