#include <string>
#include <iostream>
using namespace std;
int main() {
string stroka;
cin >> stroka;
for (int number = stroka.length() - 1; number >= 0; number--) {
cout << stroka[number];
}
cout << endl;
return 0;
#include <string>
#include <iostream>
using namespace std;
int main() {
string stroka;
cin >> stroka;
for (int number = stroka.length() - 1; number >= 0; number--) {
cout << stroka[number];
}
cout << endl;
return 0;
}