# No.304 鍵(1) response = 'locked' answer = 0 while response != 'unlocked' and answer < 1000: print('{:03d}'.format(answer)) answer += 1 response = input()