string = input()
for ch in string[::-1]:
    print(ch, end='')