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();
    
    int date[] = new int[n*2];
    int cost = 1001;
    
    for(int i = 0 ; i < n*2 ; ++i){
      date[i] = sc.nextInt();
    }
    
    for(int i = 1;i<n*2;i+=2){
      if(date[i] <= t && date[i-1]<cost){
        cost = date[i-1];
      }
    }
    
    if(cost == 1001){
      System.out.println("TLE");
    }else{
      System.out.println(cost);
    }  
  }
} 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();
    
    int date[] = new int[n*2];
    int cost = 1001;
    
    for(int i = 0 ; i < n*2 ; ++i){
      date[i] = sc.nextInt();
    }
    
    for(int i = 1;i<n*2;i+=2){
      if(date[i] <= t && date[i-1]<cost){
        cost = date[i-1];
      }
    }
    
    if(cost == 1001){
      System.out.println("TLE");
    }else{
      System.out.println(cost);
    }  
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int t = sc.nextInt();
    
    int date[] = new int[n*2];
    int cost = 1001;
    
    for(int i = 0 ; i < n*2 ; ++i){
      date[i] = sc.nextInt();
    }
    
    for(int i = 1;i<n*2;i+=2){
      if(date[i] <= t && date[i-1]<cost){
        cost = date[i-1];
      }
    }
    
    if(cost == 1001){
      System.out.println("TLE");
    }else{
      System.out.println(cost);
    }  
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int t = sc.nextInt();
    
    int date[] = new int[n*2];
    int cost = 1001;
    
    for(int i = 0 ; i < n*2 ; ++i){
      date[i] = sc.nextInt();
    }
    
    for(int i = 1;i<n*2;i+=2){
      if(date[i] <= t && date[i-1]<cost){
        cost = date[i-1];
      }
    }
    
    if(cost == 1001){
      System.out.println("TLE");
    }else{
      System.out.println(cost);
    }  
  } 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 int date[] = new int[n*2]; date new int[n*2] n*2 n 2 int cost = 1001; cost 1001 for(int i = 0 ; i < n*2 ; ++i){
      date[i] = sc.nextInt();
    } int i = 0 ; int i = 0 ; i 0 i < n*2 i n*2 n 2 ++i ++i i {
      date[i] = sc.nextInt();
    } {
      date[i] = sc.nextInt();
    } date[i] = sc.nextInt() date[i] date i sc.nextInt() sc.nextInt sc for(int i = 1;i<n*2;i+=2){
      if(date[i] <= t && date[i-1]<cost){
        cost = date[i-1];
      }
    } int i = 1; int i = 1; i 1 i<n*2 i n*2 n 2 i+=2 i+=2 i 2 {
      if(date[i] <= t && date[i-1]<cost){
        cost = date[i-1];
      }
    } {
      if(date[i] <= t && date[i-1]<cost){
        cost = date[i-1];
      }
    } if(date[i] <= t && date[i-1]<cost){
        cost = date[i-1];
      } date[i] <= t && date[i-1]<cost date[i] <= t date[i] date i t date[i-1]<cost date[i-1] date i-1 i 1 cost {
        cost = date[i-1];
      } cost = date[i-1] cost date[i-1] date i-1 i 1 if(cost == 1001){
      System.out.println("TLE");
    }else{
      System.out.println(cost);
    } cost == 1001 cost 1001 {
      System.out.println("TLE");
    } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
      System.out.println(cost);
    } System.out.println(cost) System.out.println System.out System System.out cost 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();
    
    int date[] = new int[n*2];
    int cost = 1001;
    
    for(int i = 0 ; i < n*2 ; ++i){
      date[i] = sc.nextInt();
    }
    
    for(int i = 1;i<n*2;i+=2){
      if(date[i] <= t && date[i-1]<cost){
        cost = date[i-1];
      }
    }
    
    if(cost == 1001){
      System.out.println("TLE");
    }else{
      System.out.println(cost);
    }  
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int t = sc.nextInt();
    
    int date[] = new int[n*2];
    int cost = 1001;
    
    for(int i = 0 ; i < n*2 ; ++i){
      date[i] = sc.nextInt();
    }
    
    for(int i = 1;i<n*2;i+=2){
      if(date[i] <= t && date[i-1]<cost){
        cost = date[i-1];
      }
    }
    
    if(cost == 1001){
      System.out.println("TLE");
    }else{
      System.out.println(cost);
    }  
  }
} 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();
    
    int date[] = new int[n*2];
    int cost = 1001;
    
    for(int i = 0 ; i < n*2 ; ++i){
      date[i] = sc.nextInt();
    }
    
    for(int i = 1;i<n*2;i+=2){
      if(date[i] <= t && date[i-1]<cost){
        cost = date[i-1];
      }
    }
    
    if(cost == 1001){
      System.out.println("TLE");
    }else{
      System.out.println(cost);
    }  
  }
}