input_str=input()
def reverse_string_by_slice(input_str):
    print(input_str[::-1])
reverse_string_by_slice(input_str)