#include<iostream>
#include<vector>
using namespace std;
int main() {
int num;
cin>>num;
string snum = to_string(num);
reverse(snum.begin(), snum.end());
cout<<snum<<endl;
return 0;
}
#include<iostream>
#include<vector>
using namespace std;
int main() {
int num;
cin>>num;
string snum = to_string(num);
reverse(snum.begin(), snum.end());
cout<<snum<<endl;
return 0;
}