import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int limit = sc.nextInt();
    int cost;
    int time;
    int ans = -1;
    boolean con = true;
    
   	for(int i = 0; i < n;i++){
      cost = sc.nextInt();
      time = sc.nextInt();
      if(time <= limit){
        if(ans == -1) ans = cost;
        else if(cost < ans) ans = cost;
      	}
    }
    
    if(ans == -1) System.out.println("TLE");
    else System.out.println(ans);
  }
} 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 limit = sc.nextInt();
    int cost;
    int time;
    int ans = -1;
    boolean con = true;
    
   	for(int i = 0; i < n;i++){
      cost = sc.nextInt();
      time = sc.nextInt();
      if(time <= limit){
        if(ans == -1) ans = cost;
        else if(cost < ans) ans = cost;
      	}
    }
    
    if(ans == -1) System.out.println("TLE");
    else System.out.println(ans);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int limit = sc.nextInt();
    int cost;
    int time;
    int ans = -1;
    boolean con = true;
    
   	for(int i = 0; i < n;i++){
      cost = sc.nextInt();
      time = sc.nextInt();
      if(time <= limit){
        if(ans == -1) ans = cost;
        else if(cost < ans) ans = cost;
      	}
    }
    
    if(ans == -1) System.out.println("TLE");
    else System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int limit = sc.nextInt();
    int cost;
    int time;
    int ans = -1;
    boolean con = true;
    
   	for(int i = 0; i < n;i++){
      cost = sc.nextInt();
      time = sc.nextInt();
      if(time <= limit){
        if(ans == -1) ans = cost;
        else if(cost < ans) ans = cost;
      	}
    }
    
    if(ans == -1) System.out.println("TLE");
    else System.out.println(ans);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int limit = sc.nextInt(); limit sc.nextInt() sc.nextInt sc int cost; cost int time; time int ans = -1; ans -1 1 boolean con = true; con true for(int i = 0; i < n;i++){
      cost = sc.nextInt();
      time = sc.nextInt();
      if(time <= limit){
        if(ans == -1) ans = cost;
        else if(cost < ans) ans = cost;
      	}
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      cost = sc.nextInt();
      time = sc.nextInt();
      if(time <= limit){
        if(ans == -1) ans = cost;
        else if(cost < ans) ans = cost;
      	}
    } {
      cost = sc.nextInt();
      time = sc.nextInt();
      if(time <= limit){
        if(ans == -1) ans = cost;
        else if(cost < ans) ans = cost;
      	}
    } cost = sc.nextInt() cost sc.nextInt() sc.nextInt sc time = sc.nextInt() time sc.nextInt() sc.nextInt sc if(time <= limit){
        if(ans == -1) ans = cost;
        else if(cost < ans) ans = cost;
      	} time <= limit time limit {
        if(ans == -1) ans = cost;
        else if(cost < ans) ans = cost;
      	} if(ans == -1) ans = cost;
        else if(cost < ans) ans = cost; ans == -1 ans -1 1 ans = cost ans cost if(cost < ans) ans = cost; cost < ans cost ans ans = cost ans cost if(ans == -1) System.out.println("TLE");
    else System.out.println(ans); ans == -1 ans -1 1 System.out.println("TLE") System.out.println System.out System System.out "TLE" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int limit = sc.nextInt();
    int cost;
    int time;
    int ans = -1;
    boolean con = true;
    
   	for(int i = 0; i < n;i++){
      cost = sc.nextInt();
      time = sc.nextInt();
      if(time <= limit){
        if(ans == -1) ans = cost;
        else if(cost < ans) ans = cost;
      	}
    }
    
    if(ans == -1) System.out.println("TLE");
    else System.out.println(ans);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int limit = sc.nextInt();
    int cost;
    int time;
    int ans = -1;
    boolean con = true;
    
   	for(int i = 0; i < n;i++){
      cost = sc.nextInt();
      time = sc.nextInt();
      if(time <= limit){
        if(ans == -1) ans = cost;
        else if(cost < ans) ans = cost;
      	}
    }
    
    if(ans == -1) System.out.println("TLE");
    else System.out.println(ans);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int limit = sc.nextInt();
    int cost;
    int time;
    int ans = -1;
    boolean con = true;
    
   	for(int i = 0; i < n;i++){
      cost = sc.nextInt();
      time = sc.nextInt();
      if(time <= limit){
        if(ans == -1) ans = cost;
        else if(cost < ans) ans = cost;
      	}
    }
    
    if(ans == -1) System.out.println("TLE");
    else System.out.println(ans);
  }
}
