num = 0 print('{0:03d}'.format(num)) while input() != 'unlocked': num += 1 print('{0:03d}'.format(num))