def main(): for i in range(1000): formated = '{0:03d}'.format(i) print(formated) if input() == 'unlocked': break if __name__ == '__main__': main()