#include <iostream>
#include <string>
using namespace std;
int main() {
string nome;
cin >> nome;
for (int i = nome.length() - 1; i >= 0; i--) {
cout << nome[i];
}
}
//http://pt.stackoverflow.com/q/190443/101
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewogICAgc3RyaW5nIG5vbWU7CiAgICBjaW4gPj4gbm9tZTsKICAgIGZvciAoaW50IGkgPSBub21lLmxlbmd0aCgpIC0gMTsgaSA+PSAwOyBpLS0pIHsKICAgICAgICBjb3V0IDw8IG5vbWVbaV07CiAgICB9Cn0KCi8vaHR0cDovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMTkwNDQzLzEwMQ==