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[] allList = new int[2*N];
    for(int i = 0; i < 2*N; i++){
      allList[i] = sc.nextInt();
    }
    int cost = 10001; 
    for(int i = 1; i < 2*N; i+=2){
      if(allList[i] <= T && allList[i-1]<cost){
        cost = allList[i-1];
      }
    }
    
    if(cost == 10001){
      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[] allList = new int[2*N];
    for(int i = 0; i < 2*N; i++){
      allList[i] = sc.nextInt();
    }
    int cost = 10001; 
    for(int i = 1; i < 2*N; i+=2){
      if(allList[i] <= T && allList[i-1]<cost){
        cost = allList[i-1];
      }
    }
    
    if(cost == 10001){
      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[] allList = new int[2*N];
    for(int i = 0; i < 2*N; i++){
      allList[i] = sc.nextInt();
    }
    int cost = 10001; 
    for(int i = 1; i < 2*N; i+=2){
      if(allList[i] <= T && allList[i-1]<cost){
        cost = allList[i-1];
      }
    }
    
    if(cost == 10001){
      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[] allList = new int[2*N];
    for(int i = 0; i < 2*N; i++){
      allList[i] = sc.nextInt();
    }
    int cost = 10001; 
    for(int i = 1; i < 2*N; i+=2){
      if(allList[i] <= T && allList[i-1]<cost){
        cost = allList[i-1];
      }
    }
    
    if(cost == 10001){
      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[] allList = new int[2*N]; allList new int[2*N] 2*N 2 N for(int i = 0; i < 2*N; i++){
      allList[i] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i < 2*N i 2*N 2 N i++ i++ i {
      allList[i] = sc.nextInt();
    } {
      allList[i] = sc.nextInt();
    } allList[i] = sc.nextInt() allList[i] allList i sc.nextInt() sc.nextInt sc int cost = 10001; cost 10001 for(int i = 1; i < 2*N; i+=2){
      if(allList[i] <= T && allList[i-1]<cost){
        cost = allList[i-1];
      }
    } int i = 1; int i = 1; i 1 i < 2*N i 2*N 2 N i+=2 i+=2 i 2 {
      if(allList[i] <= T && allList[i-1]<cost){
        cost = allList[i-1];
      }
    } {
      if(allList[i] <= T && allList[i-1]<cost){
        cost = allList[i-1];
      }
    } if(allList[i] <= T && allList[i-1]<cost){
        cost = allList[i-1];
      } allList[i] <= T && allList[i-1]<cost allList[i] <= T allList[i] allList i T allList[i-1]<cost allList[i-1] allList i-1 i 1 cost {
        cost = allList[i-1];
      } cost = allList[i-1] cost allList[i-1] allList i-1 i 1 if(cost == 10001){
      System.out.println("TLE");
    }else{
      System.out.println(cost);
    } cost == 10001 cost 10001 {
      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[] allList = new int[2*N];
    for(int i = 0; i < 2*N; i++){
      allList[i] = sc.nextInt();
    }
    int cost = 10001; 
    for(int i = 1; i < 2*N; i+=2){
      if(allList[i] <= T && allList[i-1]<cost){
        cost = allList[i-1];
      }
    }
    
    if(cost == 10001){
      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[] allList = new int[2*N];
    for(int i = 0; i < 2*N; i++){
      allList[i] = sc.nextInt();
    }
    int cost = 10001; 
    for(int i = 1; i < 2*N; i+=2){
      if(allList[i] <= T && allList[i-1]<cost){
        cost = allList[i-1];
      }
    }
    
    if(cost == 10001){
      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[] allList = new int[2*N];
    for(int i = 0; i < 2*N; i++){
      allList[i] = sc.nextInt();
    }
    int cost = 10001; 
    for(int i = 1; i < 2*N; i+=2){
      if(allList[i] <= T && allList[i-1]<cost){
        cost = allList[i-1];
      }
    }
    
    if(cost == 10001){
      System.out.println("TLE");
    }else{
      System.out.println(cost);
    }
    
  }
  
}