#include <stdio.h>
#include<stdlib.h>

int counter(char s[]){
int i=0;
while(s[i]!='\0')
 {
  i++;
 };
return i;
};

char* setPalindrome(char s[]){
 int i;
 int j=1;
 int k=0;
 i=counter(s);
 char*tmp=(char*)malloc(sizeof(char)*i*2+1);
 for(k;k<i;k++){
 tmp[k]=s[k];
 };
 for(i=i-1;i>=0;i--){
 tmp[j+k]=s[i];
 k++;
 };
 tmp[j+k]='\0';
 return tmp;
};


int main(){
    char s[100];
    char* t;
    scanf("%s",s);
    t=setPalindrome(s);
    printf("%s",t);
    free(t);
    return 0;
}
