input获取的字符串均为string,直接逆序翻转后遍历打印

for v in reversed(input()):
    print(v, end='')