#include<bits/stdc++.h> using namespace std; int main(){ char a,b,c,d,e; cin>>a>>b>>c>>d>>e; cout<<e<<d<<c<<b<<a<<endl; return 0; }