s = int(input()) p = int(input()) while s != p: print("locked") p = int(input()) print("unlocked")