# coding:utf-8 def main(): for i in range(1000): print("%03d" % i) if input() == 'unlocked': break main()