word = input() reversed_word = word[::-1] print(reversed_word)