import java.util.*;
class Main {
  public static void main(String[] args) {
    
   Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int T = scan.nextInt();
    int arr[] = new int[N];
    int arr2[] = new int[N];
    
    for(int i = 0 ; i< N ;i++){
      arr[i] = scan.nextInt();
      arr2[i] = scan.nextInt();
    }
    
    int min = 999999;
    for(int i = 0 ; i<N ; i++){
      if(arr[i]<min && arr2[i]<=T){
        min = arr[i];
      }
    }
    
    if(min == 999999){
      System.out.println("TLE");
    }else{
      System.out.println(min);
    }
    
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args) {
    
   Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int T = scan.nextInt();
    int arr[] = new int[N];
    int arr2[] = new int[N];
    
    for(int i = 0 ; i< N ;i++){
      arr[i] = scan.nextInt();
      arr2[i] = scan.nextInt();
    }
    
    int min = 999999;
    for(int i = 0 ; i<N ; i++){
      if(arr[i]<min && arr2[i]<=T){
        min = arr[i];
      }
    }
    
    if(min == 999999){
      System.out.println("TLE");
    }else{
      System.out.println(min);
    }
    
  }
} Main public static void main(String[] args) {
    
   Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int T = scan.nextInt();
    int arr[] = new int[N];
    int arr2[] = new int[N];
    
    for(int i = 0 ; i< N ;i++){
      arr[i] = scan.nextInt();
      arr2[i] = scan.nextInt();
    }
    
    int min = 999999;
    for(int i = 0 ; i<N ; i++){
      if(arr[i]<min && arr2[i]<=T){
        min = arr[i];
      }
    }
    
    if(min == 999999){
      System.out.println("TLE");
    }else{
      System.out.println(min);
    }
    
  } main {
    
   Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int T = scan.nextInt();
    int arr[] = new int[N];
    int arr2[] = new int[N];
    
    for(int i = 0 ; i< N ;i++){
      arr[i] = scan.nextInt();
      arr2[i] = scan.nextInt();
    }
    
    int min = 999999;
    for(int i = 0 ; i<N ; i++){
      if(arr[i]<min && arr2[i]<=T){
        min = arr[i];
      }
    }
    
    if(min == 999999){
      System.out.println("TLE");
    }else{
      System.out.println(min);
    }
    
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int T = scan.nextInt(); T scan.nextInt() scan.nextInt scan int arr[] = new int[N]; arr new int[N] N int arr2[] = new int[N]; arr2 new int[N] N for(int i = 0 ; i< N ;i++){
      arr[i] = scan.nextInt();
      arr2[i] = scan.nextInt();
    } int i = 0 ; int i = 0 ; i 0 i< N i N i++ i++ i {
      arr[i] = scan.nextInt();
      arr2[i] = scan.nextInt();
    } {
      arr[i] = scan.nextInt();
      arr2[i] = scan.nextInt();
    } arr[i] = scan.nextInt() arr[i] arr i scan.nextInt() scan.nextInt scan arr2[i] = scan.nextInt() arr2[i] arr2 i scan.nextInt() scan.nextInt scan int min = 999999; min 999999 for(int i = 0 ; i<N ; i++){
      if(arr[i]<min && arr2[i]<=T){
        min = arr[i];
      }
    } int i = 0 ; int i = 0 ; i 0 i<N i N i++ i++ i {
      if(arr[i]<min && arr2[i]<=T){
        min = arr[i];
      }
    } {
      if(arr[i]<min && arr2[i]<=T){
        min = arr[i];
      }
    } if(arr[i]<min && arr2[i]<=T){
        min = arr[i];
      } arr[i]<min && arr2[i]<=T arr[i]<min arr[i] arr i min arr2[i]<=T arr2[i] arr2 i T {
        min = arr[i];
      } min = arr[i] min arr[i] arr i if(min == 999999){
      System.out.println("TLE");
    }else{
      System.out.println(min);
    } min == 999999 min 999999 {
      System.out.println("TLE");
    } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
      System.out.println(min);
    } System.out.println(min) System.out.println System.out System System.out min String[] args args
import java.util.*;
class Main {
  public static void main(String[] args) {
    
   Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int T = scan.nextInt();
    int arr[] = new int[N];
    int arr2[] = new int[N];
    
    for(int i = 0 ; i< N ;i++){
      arr[i] = scan.nextInt();
      arr2[i] = scan.nextInt();
    }
    
    int min = 999999;
    for(int i = 0 ; i<N ; i++){
      if(arr[i]<min && arr2[i]<=T){
        min = arr[i];
      }
    }
    
    if(min == 999999){
      System.out.println("TLE");
    }else{
      System.out.println(min);
    }
    
  }
}
