#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;
typedef long long int ll;

int main(){
    string s; cin >> s;
    reverse(s.begin(),s.end());
    cout << s << endl;
}
