#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
int str;
cin>>str;
vector<int> vec;
if(str == 0)
{
cout<<"0";
}
while(str){
vec.push_back(str%10);
str /= 10;
}
for(int i = 0; i < vec.size(); i++)
{
cout<<vec[i];
}
return 0;
}
#include <string>
#include <vector>
using namespace std;
int main()
{
int str;
cin>>str;
vector<int> vec;
if(str == 0)
{
cout<<"0";
}
while(str){
vec.push_back(str%10);
str /= 10;
}
for(int i = 0; i < vec.size(); i++)
{
cout<<vec[i];
}
return 0;
}