#include <bits/stdc++.h>   using namespace std;   char s[1005];   int main() {     int n, f = 1;     char *p, *q;     scanf( %s , s);     n = strlen(s);     p = s;     q = s + n - 1;     while (p <= q) {       if (*p == *q) {         p++;         q--;       } else {         f = 0;         break;       }     }     printf( %s , s);     if (!f) {       for (int i = n - 1; i >= 0; i--) printf( %c , s[i]);     }     return 0;   }   