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 cost[] = new int[N];
        int time[] = new int[N];
        int i;
        int result = 0;
        for(i = 0;i < N; i++){
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= T){
            if(result > cost[i] || result == 0){
                result = cost[i];
            }
          }
        }
      	if(result == 0){
           System.out.println("TLE");   
        }else{
     	   System.out.println(result);   
        }
    }
} 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 cost[] = new int[N];
        int time[] = new int[N];
        int i;
        int result = 0;
        for(i = 0;i < N; i++){
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= T){
            if(result > cost[i] || result == 0){
                result = cost[i];
            }
          }
        }
      	if(result == 0){
           System.out.println("TLE");   
        }else{
     	   System.out.println(result);   
        }
    }
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int cost[] = new int[N];
        int time[] = new int[N];
        int i;
        int result = 0;
        for(i = 0;i < N; i++){
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= T){
            if(result > cost[i] || result == 0){
                result = cost[i];
            }
          }
        }
      	if(result == 0){
           System.out.println("TLE");   
        }else{
     	   System.out.println(result);   
        }
    } main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int cost[] = new int[N];
        int time[] = new int[N];
        int i;
        int result = 0;
        for(i = 0;i < N; i++){
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= T){
            if(result > cost[i] || result == 0){
                result = cost[i];
            }
          }
        }
      	if(result == 0){
           System.out.println("TLE");   
        }else{
     	   System.out.println(result);   
        }
    } 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 cost[] = new int[N]; cost new int[N] N int time[] = new int[N]; time new int[N] N int i; i int result = 0; result 0 for(i = 0;i < N; i++){
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= T){
            if(result > cost[i] || result == 0){
                result = cost[i];
            }
          }
        } i = 0; i = 0 i 0 i < N i N i++ i++ i {
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= T){
            if(result > cost[i] || result == 0){
                result = cost[i];
            }
          }
        } {
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= T){
            if(result > cost[i] || result == 0){
                result = cost[i];
            }
          }
        } cost[i] = sc.nextInt() cost[i] cost i sc.nextInt() sc.nextInt sc time[i] = sc.nextInt() time[i] time i sc.nextInt() sc.nextInt sc if(time[i] <= T){
            if(result > cost[i] || result == 0){
                result = cost[i];
            }
          } time[i] <= T time[i] time i T {
            if(result > cost[i] || result == 0){
                result = cost[i];
            }
          } if(result > cost[i] || result == 0){
                result = cost[i];
            } result > cost[i] || result == 0 result > cost[i] result cost[i] cost i result == 0 result 0 {
                result = cost[i];
            } result = cost[i] result cost[i] cost i if(result == 0){
           System.out.println("TLE");   
        }else{
     	   System.out.println(result);   
        } result == 0 result 0 {
           System.out.println("TLE");   
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
     	   System.out.println(result);   
        } System.out.println(result) System.out.println System.out System System.out result 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 cost[] = new int[N];
        int time[] = new int[N];
        int i;
        int result = 0;
        for(i = 0;i < N; i++){
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= T){
            if(result > cost[i] || result == 0){
                result = cost[i];
            }
          }
        }
      	if(result == 0){
           System.out.println("TLE");   
        }else{
     	   System.out.println(result);   
        }
    }
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int cost[] = new int[N];
        int time[] = new int[N];
        int i;
        int result = 0;
        for(i = 0;i < N; i++){
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= T){
            if(result > cost[i] || result == 0){
                result = cost[i];
            }
          }
        }
      	if(result == 0){
           System.out.println("TLE");   
        }else{
     	   System.out.println(result);   
        }
    }
} 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 cost[] = new int[N];
        int time[] = new int[N];
        int i;
        int result = 0;
        for(i = 0;i < N; i++){
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= T){
            if(result > cost[i] || result == 0){
                result = cost[i];
            }
          }
        }
      	if(result == 0){
           System.out.println("TLE");   
        }else{
     	   System.out.println(result);   
        }
    }
}