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

void solver() {
    string str;
    cin>>str;
    reverse(str.begin(),str.end());
    cout<<str<<endl;
}

int main() {
    solver();
    return 0;
}