//Bai3
#include<bits/stdc++.h>
using namespace std;
#define el "\n"
#define ll long long
#define ull unsigned long long
#define se second
#define fi first
#define be begin
#define en end
#define Faster cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
void Run(string s)
{
cin >> s;
for(int i = s.size() - 1; i >= 0; i--) cout << s[i];
}
int main()
{
Faster;
string s;
Run(s);
return 0;
}
Ly9CYWkzCgojaW5jbHVkZTxiaXRzL3N0ZGMrKy5oPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwojZGVmaW5lIGVsICJcbiIKI2RlZmluZSBsbCBsb25nIGxvbmcKI2RlZmluZSB1bGwgdW5zaWduZWQgbG9uZyBsb25nCiNkZWZpbmUgc2Ugc2Vjb25kCiNkZWZpbmUgZmkgZmlyc3QKI2RlZmluZSBiZSBiZWdpbgojZGVmaW5lIGVuIGVuZAojZGVmaW5lIEZhc3RlciBjaW4udGllKDApOyBjb3V0LnRpZSgwKTsgaW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbygwKTsKCnZvaWQgUnVuKHN0cmluZyBzKQp7CiAgICBjaW4gPj4gczsKICAgIGZvcihpbnQgaSA9IHMuc2l6ZSgpIC0gMTsgaSA+PSAwOyBpLS0pIGNvdXQgPDwgc1tpXTsKfQppbnQgbWFpbigpCnsKICAgIEZhc3RlcjsKICAgIHN0cmluZyBzOwogICAgUnVuKHMpOwogICAgcmV0dXJuIDA7Cn0KCg==