def fill(n): s = str(n) s = '0' * (3 - len(s)) + s return s for i in range(1000): s = fill(i) print(s) a = input() if a[0] == 'u': break