def main(): n = 0 s = 'locked' while s == 'locked': print(str(n).zfill(3), flush=True) n += 1 s = input() main()