n=input("Enter the String :")
if len(n)%4 == 0:
  print(n[::-1])