#include <bits/stdc++.h>   using namespace std;   int main() {     string a, b;     cin >> a;     b = a;     for (string::reverse_iterator itr = a.rbegin(); itr != a.rend(); itr++)       b += *itr;     cout << b << endl;     return 0;   }   