    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();
        }
    } import java.util.*; util.* java 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();
        }
    } 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();
        } main {
            // 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();
        } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc String[] nt = line.split(" "); nt line.split(" ") line.split line " " int n = Integer.parseInt(nt[0]); n Integer.parseInt(nt[0]) Integer.parseInt Integer nt[0] nt 0 int t = Integer.parseInt(nt[1]); t Integer.parseInt(nt[1]) Integer.parseInt Integer nt[1] nt 1 String rel = "TLE"; 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]);
                    }
                }    
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ 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]);
                    }
                }    
            } {
                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]);
                    }
                }    
            } String keiro = sc.nextLine(); keiro sc.nextLine() sc.nextLine sc String[] k = keiro.split(" "); k keiro.split(" ") keiro.split keiro " " 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]);
                    }
                } Integer.parseInt(k[1]) <= t Integer.parseInt(k[1]) Integer.parseInt Integer k[1] 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]);
                    }
                } if (rel.equals("TLE")) {
                        rel = String.valueOf(k[0]);
                    } else if (Integer.parseInt(rel) > Integer.parseInt(k[0])) {
                        rel = String.valueOf(k[0]);
                    } rel.equals("TLE") rel.equals rel "TLE" {
                        rel = String.valueOf(k[0]);
                    } rel = String.valueOf(k[0]) rel String.valueOf(k[0]) String.valueOf String k[0] k 0 if (Integer.parseInt(rel) > Integer.parseInt(k[0])) {
                        rel = String.valueOf(k[0]);
                    } Integer.parseInt(rel) > Integer.parseInt(k[0]) Integer.parseInt(rel) Integer.parseInt Integer rel Integer.parseInt(k[0]) Integer.parseInt Integer k[0] k 0 {
                        rel = String.valueOf(k[0]);
                    } rel = String.valueOf(k[0]) rel String.valueOf(k[0]) String.valueOf String k[0] k 0 System.out.println(rel) System.out.println System.out System System.out rel sc.close() sc.close sc String[] args args 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();
        }
    } 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();
        }
    } Main
    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();
        }
    }