#include<bits/stdc++.h> using namespace std; int main() { char a[3],t; cin>>a; t=a[0];a[0]=a[2];a[2]=t; cout<<a<<endl; return 0; }