#include<iostream>
#include<string>
#include<stack>
using namespace std;
int main(){
stack<char> temp;
string a;
int i = 0;
cin >> a;
while (a[i] != '\0') {
temp.push(a[i]);
i++;
}
while (!temp.empty()) {
cout << temp.top();
temp.pop();
}
cout << endl;
system("pause");
return 0;
}