#include<stdio.h>

int main(void){
  char str[21],rts[21];

  fgets(str,sizeof(str),stdin);
  sscanf(str,"%20s",str);

  int i=0;
  while(str[i+1]!='\0'){
    i++;
  }
  
  int j=0;
  for(j;j<=i;j++){
    rts[j]=str[i-j];
  }
  
  puts(rts);

  return 0;
}
  