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];
        for(int i = 0; i < n; i++){
        	cost[i] = sc.nextInt();
          	time[i] = sc.nextInt();
        }
      	int flag = 0;
      	//暫定最小
      	int min = cost[0];
        for(int j = 0; j < n; j++){
        	if(time[j]<=t){
              if(min>cost[j]){
              	min = cost[j];
              }
 				flag =1;
            }
        }
      if(flag ==0){
        System.out.println("TLE");
      }else{
      	System.out.println(min);
      }
    }
} 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];
        for(int i = 0; i < n; i++){
        	cost[i] = sc.nextInt();
          	time[i] = sc.nextInt();
        }
      	int flag = 0;
      	//暫定最小
      	int min = cost[0];
        for(int j = 0; j < n; j++){
        	if(time[j]<=t){
              if(min>cost[j]){
              	min = cost[j];
              }
 				flag =1;
            }
        }
      if(flag ==0){
        System.out.println("TLE");
      }else{
      	System.out.println(min);
      }
    }
} 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];
        for(int i = 0; i < n; i++){
        	cost[i] = sc.nextInt();
          	time[i] = sc.nextInt();
        }
      	int flag = 0;
      	//暫定最小
      	int min = cost[0];
        for(int j = 0; j < n; j++){
        	if(time[j]<=t){
              if(min>cost[j]){
              	min = cost[j];
              }
 				flag =1;
            }
        }
      if(flag ==0){
        System.out.println("TLE");
      }else{
      	System.out.println(min);
      }
    } 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];
        for(int i = 0; i < n; i++){
        	cost[i] = sc.nextInt();
          	time[i] = sc.nextInt();
        }
      	int flag = 0;
      	//暫定最小
      	int min = cost[0];
        for(int j = 0; j < n; j++){
        	if(time[j]<=t){
              if(min>cost[j]){
              	min = cost[j];
              }
 				flag =1;
            }
        }
      if(flag ==0){
        System.out.println("TLE");
      }else{
      	System.out.println(min);
      }
    } 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 for(int i = 0; i < n; i++){
        	cost[i] = sc.nextInt();
          	time[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        	cost[i] = sc.nextInt();
          	time[i] = sc.nextInt();
        } {
        	cost[i] = sc.nextInt();
          	time[i] = sc.nextInt();
        } 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 int flag = 0; flag 0 int min = cost[0]; min cost[0] cost 0 for(int j = 0; j < n; j++){
        	if(time[j]<=t){
              if(min>cost[j]){
              	min = cost[j];
              }
 				flag =1;
            }
        } int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
        	if(time[j]<=t){
              if(min>cost[j]){
              	min = cost[j];
              }
 				flag =1;
            }
        } {
        	if(time[j]<=t){
              if(min>cost[j]){
              	min = cost[j];
              }
 				flag =1;
            }
        } if(time[j]<=t){
              if(min>cost[j]){
              	min = cost[j];
              }
 				flag =1;
            } time[j]<=t time[j] time j t {
              if(min>cost[j]){
              	min = cost[j];
              }
 				flag =1;
            } if(min>cost[j]){
              	min = cost[j];
              } min>cost[j] min cost[j] cost j {
              	min = cost[j];
              } min = cost[j] min cost[j] cost j flag =1 flag 1 if(flag ==0){
        System.out.println("TLE");
      }else{
      	System.out.println(min);
      } flag ==0 flag 0 {
        System.out.println("TLE");
      } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
      	System.out.println(min);
      } System.out.println(min) System.out.println System.out System System.out min 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];
        for(int i = 0; i < n; i++){
        	cost[i] = sc.nextInt();
          	time[i] = sc.nextInt();
        }
      	int flag = 0;
      	//暫定最小
      	int min = cost[0];
        for(int j = 0; j < n; j++){
        	if(time[j]<=t){
              if(min>cost[j]){
              	min = cost[j];
              }
 				flag =1;
            }
        }
      if(flag ==0){
        System.out.println("TLE");
      }else{
      	System.out.println(min);
      }
    }
} 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];
        for(int i = 0; i < n; i++){
        	cost[i] = sc.nextInt();
          	time[i] = sc.nextInt();
        }
      	int flag = 0;
      	//暫定最小
      	int min = cost[0];
        for(int j = 0; j < n; j++){
        	if(time[j]<=t){
              if(min>cost[j]){
              	min = cost[j];
              }
 				flag =1;
            }
        }
      if(flag ==0){
        System.out.println("TLE");
      }else{
      	System.out.println(min);
      }
    }
} 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];
        for(int i = 0; i < n; i++){
        	cost[i] = sc.nextInt();
          	time[i] = sc.nextInt();
        }
      	int flag = 0;
      	//暫定最小
      	int min = cost[0];
        for(int j = 0; j < n; j++){
        	if(time[j]<=t){
              if(min>cost[j]){
              	min = cost[j];
              }
 				flag =1;
            }
        }
      if(flag ==0){
        System.out.println("TLE");
      }else{
      	System.out.println(min);
      }
    }
}