str1=input("Enter a string")
    if len(str1) % 4 == 0:
       return ''.join(reversed(str1))
print(str1)