# 백준 #8545 (Zadanie próbne) # 인덱싱 user_input = input().strip() result = user_input[::-1] print(result)