import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   int T = sc.nextInt();
   
   List<Integer> cost = new ArrayList<>();
   int c = 0;
   int t = 0;
   for(int i =0;i<N;i++) 
   {
     c = sc.nextInt();
     t = sc.nextInt();
     
     if(t<=T) cost.add(c);
   }
   
   if(cost.size() == 0) System.out.println("TLE");
   else 
   {
     Collections.sort(cost);
     System.out.println(cost.get(0));
   }
 }
} import java.util.*; util.* java public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   int T = sc.nextInt();
   
   List<Integer> cost = new ArrayList<>();
   int c = 0;
   int t = 0;
   for(int i =0;i<N;i++) 
   {
     c = sc.nextInt();
     t = sc.nextInt();
     
     if(t<=T) cost.add(c);
   }
   
   if(cost.size() == 0) System.out.println("TLE");
   else 
   {
     Collections.sort(cost);
     System.out.println(cost.get(0));
   }
 }
} Main public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   int T = sc.nextInt();
   
   List<Integer> cost = new ArrayList<>();
   int c = 0;
   int t = 0;
   for(int i =0;i<N;i++) 
   {
     c = sc.nextInt();
     t = sc.nextInt();
     
     if(t<=T) cost.add(c);
   }
   
   if(cost.size() == 0) System.out.println("TLE");
   else 
   {
     Collections.sort(cost);
     System.out.println(cost.get(0));
   }
 } main {
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   int T = sc.nextInt();
   
   List<Integer> cost = new ArrayList<>();
   int c = 0;
   int t = 0;
   for(int i =0;i<N;i++) 
   {
     c = sc.nextInt();
     t = sc.nextInt();
     
     if(t<=T) cost.add(c);
   }
   
   if(cost.size() == 0) System.out.println("TLE");
   else 
   {
     Collections.sort(cost);
     System.out.println(cost.get(0));
   }
 } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int T = sc.nextInt(); T sc.nextInt() sc.nextInt sc List<Integer> cost = new ArrayList<>(); cost new ArrayList<>() int c = 0; c 0 int t = 0; t 0 for(int i =0;i<N;i++) 
   {
     c = sc.nextInt();
     t = sc.nextInt();
     
     if(t<=T) cost.add(c);
   } int i =0; int i =0; i 0 i<N i N i++ i++ i {
     c = sc.nextInt();
     t = sc.nextInt();
     
     if(t<=T) cost.add(c);
   } {
     c = sc.nextInt();
     t = sc.nextInt();
     
     if(t<=T) cost.add(c);
   } c = sc.nextInt() c sc.nextInt() sc.nextInt sc t = sc.nextInt() t sc.nextInt() sc.nextInt sc if(t<=T) cost.add(c); t<=T t T cost.add(c) cost.add cost c if(cost.size() == 0) System.out.println("TLE");
   else 
   {
     Collections.sort(cost);
     System.out.println(cost.get(0));
   } cost.size() == 0 cost.size() cost.size cost 0 System.out.println("TLE") System.out.println System.out System System.out "TLE" {
     Collections.sort(cost);
     System.out.println(cost.get(0));
   } Collections.sort(cost) Collections.sort Collections cost System.out.println(cost.get(0)) System.out.println System.out System System.out cost.get(0) cost.get cost 0 String[] args args public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   int T = sc.nextInt();
   
   List<Integer> cost = new ArrayList<>();
   int c = 0;
   int t = 0;
   for(int i =0;i<N;i++) 
   {
     c = sc.nextInt();
     t = sc.nextInt();
     
     if(t<=T) cost.add(c);
   }
   
   if(cost.size() == 0) System.out.println("TLE");
   else 
   {
     Collections.sort(cost);
     System.out.println(cost.get(0));
   }
 }
} public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   int T = sc.nextInt();
   
   List<Integer> cost = new ArrayList<>();
   int c = 0;
   int t = 0;
   for(int i =0;i<N;i++) 
   {
     c = sc.nextInt();
     t = sc.nextInt();
     
     if(t<=T) cost.add(c);
   }
   
   if(cost.size() == 0) System.out.println("TLE");
   else 
   {
     Collections.sort(cost);
     System.out.println(cost.get(0));
   }
 }
} Main
import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   int T = sc.nextInt();
   
   List<Integer> cost = new ArrayList<>();
   int c = 0;
   int t = 0;
   for(int i =0;i<N;i++) 
   {
     c = sc.nextInt();
     t = sc.nextInt();
     
     if(t<=T) cost.add(c);
   }
   
   if(cost.size() == 0) System.out.println("TLE");
   else 
   {
     Collections.sort(cost);
     System.out.println(cost.get(0));
   }
 }
}