import java.util.*;

public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    int T = Integer.parseInt(sc.next());
    
    int min = 10000;
    for(int i = 0; i < N; i++){
      int c = Integer.parseInt(sc.next());
      int t = Integer.parseInt(sc.next());
      if(t <= T && c < min){
        min = c;
      }
    }
    System.out.println(min == 10000 ? "TLE" : min);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    int T = Integer.parseInt(sc.next());
    
    int min = 10000;
    for(int i = 0; i < N; i++){
      int c = Integer.parseInt(sc.next());
      int t = Integer.parseInt(sc.next());
      if(t <= T && c < min){
        min = c;
      }
    }
    System.out.println(min == 10000 ? "TLE" : min);
  }
} Main public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    int T = Integer.parseInt(sc.next());
    
    int min = 10000;
    for(int i = 0; i < N; i++){
      int c = Integer.parseInt(sc.next());
      int t = Integer.parseInt(sc.next());
      if(t <= T && c < min){
        min = c;
      }
    }
    System.out.println(min == 10000 ? "TLE" : min);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    int T = Integer.parseInt(sc.next());
    
    int min = 10000;
    for(int i = 0; i < N; i++){
      int c = Integer.parseInt(sc.next());
      int t = Integer.parseInt(sc.next());
      if(t <= T && c < min){
        min = c;
      }
    }
    System.out.println(min == 10000 ? "TLE" : min);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int T = Integer.parseInt(sc.next()); T Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int min = 10000; min 10000 for(int i = 0; i < N; i++){
      int c = Integer.parseInt(sc.next());
      int t = Integer.parseInt(sc.next());
      if(t <= T && c < min){
        min = c;
      }
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      int c = Integer.parseInt(sc.next());
      int t = Integer.parseInt(sc.next());
      if(t <= T && c < min){
        min = c;
      }
    } {
      int c = Integer.parseInt(sc.next());
      int t = Integer.parseInt(sc.next());
      if(t <= T && c < min){
        min = c;
      }
    } int c = Integer.parseInt(sc.next()); c Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int t = Integer.parseInt(sc.next()); t Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(t <= T && c < min){
        min = c;
      } t <= T && c < min t <= T t T c < min c min {
        min = c;
      } min = c min c System.out.println(min == 10000 ? "TLE" : min) System.out.println System.out System System.out min == 10000 ? "TLE" : min min == 10000 min 10000 "TLE" min String[]args args public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    int T = Integer.parseInt(sc.next());
    
    int min = 10000;
    for(int i = 0; i < N; i++){
      int c = Integer.parseInt(sc.next());
      int t = Integer.parseInt(sc.next());
      if(t <= T && c < min){
        min = c;
      }
    }
    System.out.println(min == 10000 ? "TLE" : min);
  }
} public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    int T = Integer.parseInt(sc.next());
    
    int min = 10000;
    for(int i = 0; i < N; i++){
      int c = Integer.parseInt(sc.next());
      int t = Integer.parseInt(sc.next());
      if(t <= T && c < min){
        min = c;
      }
    }
    System.out.println(min == 10000 ? "TLE" : min);
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    int T = Integer.parseInt(sc.next());
    
    int min = 10000;
    for(int i = 0; i < N; i++){
      int c = Integer.parseInt(sc.next());
      int t = Integer.parseInt(sc.next());
      if(t <= T && c < min){
        min = c;
      }
    }
    System.out.println(min == 10000 ? "TLE" : min);
  }
}