word = list(input() .lower())
word.reverse()
for w in word:
    print(w,end="")