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 ans = 0;
        for(i = 0;i < n;i++){
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= t){
            if(ans > cost[i] || ans == 0){
              
            ans = cost[i];
            }
          }
        }
      	if(ans == 0){
           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 t = sc.nextInt();
		int cost[] = new int[n];
        int time[] = new int[n];
        int i;
        int ans = 0;
        for(i = 0;i < n;i++){
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= t){
            if(ans > cost[i] || ans == 0){
              
            ans = cost[i];
            }
          }
        }
      	if(ans == 0){
           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 t = sc.nextInt();
		int cost[] = new int[n];
        int time[] = new int[n];
        int i;
        int ans = 0;
        for(i = 0;i < n;i++){
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= t){
            if(ans > cost[i] || ans == 0){
              
            ans = cost[i];
            }
          }
        }
      	if(ans == 0){
           System.out.println("TLE");   
        }else{
     	   System.out.println(ans);   
        }
    } 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 ans = 0;
        for(i = 0;i < n;i++){
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= t){
            if(ans > cost[i] || ans == 0){
              
            ans = cost[i];
            }
          }
        }
      	if(ans == 0){
           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 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 ans = 0; ans 0 for(i = 0;i < n;i++){
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= t){
            if(ans > cost[i] || ans == 0){
              
            ans = 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(ans > cost[i] || ans == 0){
              
            ans = cost[i];
            }
          }
        } {
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= t){
            if(ans > cost[i] || ans == 0){
              
            ans = 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(ans > cost[i] || ans == 0){
              
            ans = cost[i];
            }
          } time[i] <= t time[i] time i t {
            if(ans > cost[i] || ans == 0){
              
            ans = cost[i];
            }
          } if(ans > cost[i] || ans == 0){
              
            ans = cost[i];
            } ans > cost[i] || ans == 0 ans > cost[i] ans cost[i] cost i ans == 0 ans 0 {
              
            ans = cost[i];
            } ans = cost[i] ans cost[i] cost i if(ans == 0){
           System.out.println("TLE");   
        }else{
     	   System.out.println(ans);   
        } ans == 0 ans 0 {
           System.out.println("TLE");   
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
     	   System.out.println(ans);   
        } 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 t = sc.nextInt();
		int cost[] = new int[n];
        int time[] = new int[n];
        int i;
        int ans = 0;
        for(i = 0;i < n;i++){
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= t){
            if(ans > cost[i] || ans == 0){
              
            ans = cost[i];
            }
          }
        }
      	if(ans == 0){
           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 t = sc.nextInt();
		int cost[] = new int[n];
        int time[] = new int[n];
        int i;
        int ans = 0;
        for(i = 0;i < n;i++){
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= t){
            if(ans > cost[i] || ans == 0){
              
            ans = cost[i];
            }
          }
        }
      	if(ans == 0){
           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 t = sc.nextInt();
		int cost[] = new int[n];
        int time[] = new int[n];
        int i;
        int ans = 0;
        for(i = 0;i < n;i++){
          cost[i] = sc.nextInt();
          time[i] = sc.nextInt();
          if(time[i] <= t){
            if(ans > cost[i] || ans == 0){
              
            ans = cost[i];
            }
          }
        }
      	if(ans == 0){
           System.out.println("TLE");   
        }else{
     	   System.out.println(ans);   
        }
    }
}