for i in range(0,1000): print '%03d' % i if raw_input() == 'unlocked': break