#include<iostream>
#include<string>
#include<algorithm>

using namespace std;

int main() {
    long long num;
    string str;
    cin >> num;
    str = to_string(num);
    reverse(str.begin(), str.end());
    cout << str;
    return 0;
}