String = str(input("Enter a string: "))

def reverse(word):
  size = len(word)
  if size == 0 :
    return 
  last_char = word[size-1]
  print(last_char,end='')
  return reverse(word[0:size-1])
  
reverse(String)
