import java.util.*;

public class Main{
  
  public static void main (String[] args){
    
    Main main = new Main();
    main.solve();
  }
  
  private void solve(){
    
    Scanner scanner = new Scanner (System.in);
    int number = scanner.nextInt();
    int maximumTime = scanner.nextInt();
    
    int cost=0;
    int time=0;
    int minimumCost=0;
    boolean firstFlag=true;
    
    for (int index=0; index<number; index++){
      
      cost = scanner.nextInt();
      time = scanner.nextInt();
      
      if(time<=maximumTime&&(cost<minimumCost||firstFlag==true)){
        minimumCost=cost;
        firstFlag=false;
      }
    }
    
    if (firstFlag==true){
      System.out.println("TLE");
    } else {
    System.out.println(minimumCost);
    }
  }
} import java.util.*; util.* java public class Main{
  
  public static void main (String[] args){
    
    Main main = new Main();
    main.solve();
  }
  
  private void solve(){
    
    Scanner scanner = new Scanner (System.in);
    int number = scanner.nextInt();
    int maximumTime = scanner.nextInt();
    
    int cost=0;
    int time=0;
    int minimumCost=0;
    boolean firstFlag=true;
    
    for (int index=0; index<number; index++){
      
      cost = scanner.nextInt();
      time = scanner.nextInt();
      
      if(time<=maximumTime&&(cost<minimumCost||firstFlag==true)){
        minimumCost=cost;
        firstFlag=false;
      }
    }
    
    if (firstFlag==true){
      System.out.println("TLE");
    } else {
    System.out.println(minimumCost);
    }
  }
} Main public static void main (String[] args){
    
    Main main = new Main();
    main.solve();
  } main {
    
    Main main = new Main();
    main.solve();
  } Main main = new Main(); main new Main() main.solve() main.solve main String[] args args private void solve(){
    
    Scanner scanner = new Scanner (System.in);
    int number = scanner.nextInt();
    int maximumTime = scanner.nextInt();
    
    int cost=0;
    int time=0;
    int minimumCost=0;
    boolean firstFlag=true;
    
    for (int index=0; index<number; index++){
      
      cost = scanner.nextInt();
      time = scanner.nextInt();
      
      if(time<=maximumTime&&(cost<minimumCost||firstFlag==true)){
        minimumCost=cost;
        firstFlag=false;
      }
    }
    
    if (firstFlag==true){
      System.out.println("TLE");
    } else {
    System.out.println(minimumCost);
    }
  } solve {
    
    Scanner scanner = new Scanner (System.in);
    int number = scanner.nextInt();
    int maximumTime = scanner.nextInt();
    
    int cost=0;
    int time=0;
    int minimumCost=0;
    boolean firstFlag=true;
    
    for (int index=0; index<number; index++){
      
      cost = scanner.nextInt();
      time = scanner.nextInt();
      
      if(time<=maximumTime&&(cost<minimumCost||firstFlag==true)){
        minimumCost=cost;
        firstFlag=false;
      }
    }
    
    if (firstFlag==true){
      System.out.println("TLE");
    } else {
    System.out.println(minimumCost);
    }
  } Scanner scanner = new Scanner (System.in); scanner new Scanner (System.in) int number = scanner.nextInt(); number scanner.nextInt() scanner.nextInt scanner int maximumTime = scanner.nextInt(); maximumTime scanner.nextInt() scanner.nextInt scanner int cost=0; cost 0 int time=0; time 0 int minimumCost=0; minimumCost 0 boolean firstFlag=true; firstFlag true for (int index=0; index<number; index++){
      
      cost = scanner.nextInt();
      time = scanner.nextInt();
      
      if(time<=maximumTime&&(cost<minimumCost||firstFlag==true)){
        minimumCost=cost;
        firstFlag=false;
      }
    } int index=0; int index=0; index 0 index<number index number index++ index++ index {
      
      cost = scanner.nextInt();
      time = scanner.nextInt();
      
      if(time<=maximumTime&&(cost<minimumCost||firstFlag==true)){
        minimumCost=cost;
        firstFlag=false;
      }
    } {
      
      cost = scanner.nextInt();
      time = scanner.nextInt();
      
      if(time<=maximumTime&&(cost<minimumCost||firstFlag==true)){
        minimumCost=cost;
        firstFlag=false;
      }
    } cost = scanner.nextInt() cost scanner.nextInt() scanner.nextInt scanner time = scanner.nextInt() time scanner.nextInt() scanner.nextInt scanner if(time<=maximumTime&&(cost<minimumCost||firstFlag==true)){
        minimumCost=cost;
        firstFlag=false;
      } time<=maximumTime&&(cost<minimumCost||firstFlag==true) time<=maximumTime time maximumTime (cost<minimumCost||firstFlag==true) cost<minimumCost cost minimumCost firstFlag==true firstFlag true {
        minimumCost=cost;
        firstFlag=false;
      } minimumCost=cost minimumCost cost firstFlag=false firstFlag false if (firstFlag==true){
      System.out.println("TLE");
    } else {
    System.out.println(minimumCost);
    } firstFlag==true firstFlag true {
      System.out.println("TLE");
    } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
    System.out.println(minimumCost);
    } System.out.println(minimumCost) System.out.println System.out System System.out minimumCost public class Main{
  
  public static void main (String[] args){
    
    Main main = new Main();
    main.solve();
  }
  
  private void solve(){
    
    Scanner scanner = new Scanner (System.in);
    int number = scanner.nextInt();
    int maximumTime = scanner.nextInt();
    
    int cost=0;
    int time=0;
    int minimumCost=0;
    boolean firstFlag=true;
    
    for (int index=0; index<number; index++){
      
      cost = scanner.nextInt();
      time = scanner.nextInt();
      
      if(time<=maximumTime&&(cost<minimumCost||firstFlag==true)){
        minimumCost=cost;
        firstFlag=false;
      }
    }
    
    if (firstFlag==true){
      System.out.println("TLE");
    } else {
    System.out.println(minimumCost);
    }
  }
} public class Main{
  
  public static void main (String[] args){
    
    Main main = new Main();
    main.solve();
  }
  
  private void solve(){
    
    Scanner scanner = new Scanner (System.in);
    int number = scanner.nextInt();
    int maximumTime = scanner.nextInt();
    
    int cost=0;
    int time=0;
    int minimumCost=0;
    boolean firstFlag=true;
    
    for (int index=0; index<number; index++){
      
      cost = scanner.nextInt();
      time = scanner.nextInt();
      
      if(time<=maximumTime&&(cost<minimumCost||firstFlag==true)){
        minimumCost=cost;
        firstFlag=false;
      }
    }
    
    if (firstFlag==true){
      System.out.println("TLE");
    } else {
    System.out.println(minimumCost);
    }
  }
} Main
import java.util.*;

public class Main{
  
  public static void main (String[] args){
    
    Main main = new Main();
    main.solve();
  }
  
  private void solve(){
    
    Scanner scanner = new Scanner (System.in);
    int number = scanner.nextInt();
    int maximumTime = scanner.nextInt();
    
    int cost=0;
    int time=0;
    int minimumCost=0;
    boolean firstFlag=true;
    
    for (int index=0; index<number; index++){
      
      cost = scanner.nextInt();
      time = scanner.nextInt();
      
      if(time<=maximumTime&&(cost<minimumCost||firstFlag==true)){
        minimumCost=cost;
        firstFlag=false;
      }
    }
    
    if (firstFlag==true){
      System.out.println("TLE");
    } else {
    System.out.println(minimumCost);
    }
  }
}