#print(input()[::-1])
print(''.join(list(reversed(input()))))