fork download
  1. class neat(object):
  2.  
  3. def __init__(self):
  4. self.print_string()
  5.  
  6. def print_string(self):
  7. s = ''
  8. while raw_input() != '0':
  9. s+=chr(self.get_char()+(1<<6)+(1<<5))
  10. print(s)
  11.  
  12. def get_char(self):
  13. char = 0
  14. while raw_input() != '0':
  15. char+=1
  16. return char
  17.  
  18. if __name__ == '__main__':
  19. neater = neat()
Success #stdin #stdout 0.02s 9024KB
stdin
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
1
1
1
1
1
1
0
1
1
0
1
1
1 
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
0
stdout
neat