import sys

t = int(sys.stdin.readline())

str = sys.stdin.readline().strip()

print(str[::-1])


print(s[::-1]) # 切片反转

  1. 1.​​s[::-1]​​•这是Python的切片(slice)操作,用于反转字符串。•切片语法为[start:stop:step],其中:•start和stop省略表示从头到尾。•step=-1表示从后向前遍历。•例如,"abcde"[::-1]会返回"edcba"。