import java.util.*; class Question304 { public static void main(String[] str) { Scanner scan = new Scanner(System.in); int code = scan.nextInt(); while(true){ int input = scan.nextInt(); if(input == code){ System.out.println("unlocked"); break; } else{ System.out.println("locked"); } } } }