for i in range(1000): s=input() if s=='unlocked': print(f'{i:03}') break