#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <vector>
#include <stack>
#include <map>
#include <queue>
#include <string.h>
#include <algorithm>
#include <iostream>
#define ll long long
#define db double
#define INFINITE 9999999

using namespace std;

string func(string s){
    int l=s.size();
    for(int i=0,j=l-1;i<j;i++,j--){
        swap(s[i],s[j]);
    }
    return s;
}

int main()
{
    //freopen("in.txt","r",stdin);
    //freopen("out.txt","w",stdout);
    string s;
    getline(cin,s);
    cout<<func(s)<<endl;
    return 0;
}