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


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