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