
def func(st):
 x = len(st)
 while x != 0:
  print st[x-1]
  x = x-1
  print '\n'
 print '\n'
y = raw_input(); func(y)



98ff9c03fd92cd56e76e64cfdaefad4d17b43f12

def func(st):
 x = len(st)
 while x != 0:
  print st[x-1]
  x = x-1
  print '\n'
 print '\n'
y = raw_input(); func(y)


