#include <iostream>
#include <string>
using namespace std;

int main(){
    string s = "";
    cin >> s;
    string::iterator i = s.begin();
    string x = "";
    while(i!=s.end()){
        x = *i + x;
        i++;
    }
    cout << x;
    return 0;
}