#include <iostream>
#include <algorithm>
using namespace std;
int main() {
string str;
cin >> str;
// 反转字符串
reverse(str.begin(), str.end());
cout << str << endl;
}

#include <iostream>
#include <algorithm>
using namespace std;
int main() {
string str;
cin >> str;
// 反转字符串
reverse(str.begin(), str.end());
cout << str << endl;
}