#include <cstdio>

int main(){
  char str[20], cstr[20];
  int arr;
  int i = 0;

  scanf("%s", str);

  while (str[i] != '\0'){
    i++;
  }
  arr = i - 1;
  for (int j = 0; j < i; j++){
    cstr[j] = str[arr];
    arr--;
  }
  printf("%s\n", cstr);
  return 0;
}