    import java.util.*;
     
    public class Main {
        public static void main(String[] args) {
            // Your code here!
            Scanner sc = new Scanner(System.in);
            String line = sc.nextLine();
            String[] nt = line.split(" ");
            int n = Integer.parseInt(nt[0]);
            int t = Integer.parseInt(nt[1]);
            
            String rel = "TLE";
            for (int i = 0; i < n; i++) {
                String keiro = sc.nextLine();
                String[] k = keiro.split(" ");
                if (Integer.parseInt(k[1]) <= t) {
                    if (rel.equals("TLE")) {
                        rel = String.valueOf(k[0]);
                    } else if (Integer.parseInt(rel) > Integer.parseInt(k[0])) {
                        rel = String.valueOf(k[0]);
                    }
                }    
            }
            System.out.println(rel);
            sc.close();
        }
    }
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz