#include using namespace std; int main() { char str,k[100]; int i = 0; while (cin >> str) { if (str == '\n') { break; } k[i] = str; i++; } for (int j = i - 1; j >= 0; j--) { cout << k[i]; } cout << endl; return 0;; }