key = input() n = "locked" while True: p = input() if p == key: n = "unclocked" print(n) break print(n)