#include<bits/stdc++.h>
using namespace std;
// write your code here......
string reverse_str(string s)
{
    string &s1 =s;
    int len=s.size();
    char tmp;
    for(int i=0;i<(len/2);i++)
    {
        tmp=s1[i];
        s1[i]=s1[len-1-i];
        s1[len-1-i]=tmp;
    }
    return s1;

}
int main(){
    string s;
    getline(cin,s);
    // write your code here......
    s=reverse_str(s);
    cout<<s;
    return 0;
}