#include <stdio.h>
void main(){
  char str[256];
  gets(str);
  for(int i=strlen(str)-1;i;i--){
    printf("%c",str[i]);
  }
}