def reverse(n):
if (n==''):
return ''
else:
return n[-1:] + reverse(n[:-1])
n = input()
answer = int(reverse(n))
print(answer)
알고리즘
def reverse(n):
if (n==''):
return ''
else:
return n[-1:] + reverse(n[:-1])
n = input()
answer = int(reverse(n))
print(answer)