import sys i = 0 while 1: print i sys.stdout.flush() raw_input() i += 1