import java.util.*;
public class Main {
	//定義関数から参照できる変数定義はこの辺
	//static Var_form Var_name

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	long wk_cost = 0;
    	long wk_time = 0;
    	long min_cost = Long.MAX_VALUE;
    	String ans="TLE";
    	//Integer.MAX_VALUE;
		long N = sc.nextLong();
		long T = sc.nextLong();
		for(int i=1;i<=N;i++){
			wk_cost=sc.nextLong();
			wk_time=sc.nextLong();
			if (wk_time<=T) {
				min_cost=Math.min(min_cost,wk_cost);
			}
		}
		if (min_cost==Long.MAX_VALUE){
			System.out.println(ans);		
		}
		else{
			System.out.println(min_cost);

		}  
    }
    //関数定義
	//public static int funk(long X,long A) {
    //    return ;    
    //}
}	 import java.util.*; util.* java public class Main {
	//定義関数から参照できる変数定義はこの辺
	//static Var_form Var_name

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	long wk_cost = 0;
    	long wk_time = 0;
    	long min_cost = Long.MAX_VALUE;
    	String ans="TLE";
    	//Integer.MAX_VALUE;
		long N = sc.nextLong();
		long T = sc.nextLong();
		for(int i=1;i<=N;i++){
			wk_cost=sc.nextLong();
			wk_time=sc.nextLong();
			if (wk_time<=T) {
				min_cost=Math.min(min_cost,wk_cost);
			}
		}
		if (min_cost==Long.MAX_VALUE){
			System.out.println(ans);		
		}
		else{
			System.out.println(min_cost);

		}  
    }
    //関数定義
	//public static int funk(long X,long A) {
    //    return ;    
    //}
} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	long wk_cost = 0;
    	long wk_time = 0;
    	long min_cost = Long.MAX_VALUE;
    	String ans="TLE";
    	//Integer.MAX_VALUE;
		long N = sc.nextLong();
		long T = sc.nextLong();
		for(int i=1;i<=N;i++){
			wk_cost=sc.nextLong();
			wk_time=sc.nextLong();
			if (wk_time<=T) {
				min_cost=Math.min(min_cost,wk_cost);
			}
		}
		if (min_cost==Long.MAX_VALUE){
			System.out.println(ans);		
		}
		else{
			System.out.println(min_cost);

		}  
    } main {
    	Scanner sc = new Scanner(System.in);
    	long wk_cost = 0;
    	long wk_time = 0;
    	long min_cost = Long.MAX_VALUE;
    	String ans="TLE";
    	//Integer.MAX_VALUE;
		long N = sc.nextLong();
		long T = sc.nextLong();
		for(int i=1;i<=N;i++){
			wk_cost=sc.nextLong();
			wk_time=sc.nextLong();
			if (wk_time<=T) {
				min_cost=Math.min(min_cost,wk_cost);
			}
		}
		if (min_cost==Long.MAX_VALUE){
			System.out.println(ans);		
		}
		else{
			System.out.println(min_cost);

		}  
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long wk_cost = 0; wk_cost 0 long wk_time = 0; wk_time 0 long min_cost = Long.MAX_VALUE; min_cost Long.MAX_VALUE Long Long.MAX_VALUE String ans="TLE"; ans "TLE" long N = sc.nextLong(); N sc.nextLong() sc.nextLong sc long T = sc.nextLong(); T sc.nextLong() sc.nextLong sc for(int i=1;i<=N;i++){
			wk_cost=sc.nextLong();
			wk_time=sc.nextLong();
			if (wk_time<=T) {
				min_cost=Math.min(min_cost,wk_cost);
			}
		} int i=1; int i=1; i 1 i<=N i N i++ i++ i {
			wk_cost=sc.nextLong();
			wk_time=sc.nextLong();
			if (wk_time<=T) {
				min_cost=Math.min(min_cost,wk_cost);
			}
		} {
			wk_cost=sc.nextLong();
			wk_time=sc.nextLong();
			if (wk_time<=T) {
				min_cost=Math.min(min_cost,wk_cost);
			}
		} wk_cost=sc.nextLong() wk_cost sc.nextLong() sc.nextLong sc wk_time=sc.nextLong() wk_time sc.nextLong() sc.nextLong sc if (wk_time<=T) {
				min_cost=Math.min(min_cost,wk_cost);
			} wk_time<=T wk_time T {
				min_cost=Math.min(min_cost,wk_cost);
			} min_cost=Math.min(min_cost,wk_cost) min_cost Math.min(min_cost,wk_cost) Math.min Math min_cost wk_cost if (min_cost==Long.MAX_VALUE){
			System.out.println(ans);		
		}
		else{
			System.out.println(min_cost);

		} min_cost==Long.MAX_VALUE min_cost Long.MAX_VALUE Long Long.MAX_VALUE {
			System.out.println(ans);		
		} System.out.println(ans) System.out.println System.out System System.out ans {
			System.out.println(min_cost);

		} System.out.println(min_cost) System.out.println System.out System System.out min_cost String[] args args public class Main {
	//定義関数から参照できる変数定義はこの辺
	//static Var_form Var_name

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	long wk_cost = 0;
    	long wk_time = 0;
    	long min_cost = Long.MAX_VALUE;
    	String ans="TLE";
    	//Integer.MAX_VALUE;
		long N = sc.nextLong();
		long T = sc.nextLong();
		for(int i=1;i<=N;i++){
			wk_cost=sc.nextLong();
			wk_time=sc.nextLong();
			if (wk_time<=T) {
				min_cost=Math.min(min_cost,wk_cost);
			}
		}
		if (min_cost==Long.MAX_VALUE){
			System.out.println(ans);		
		}
		else{
			System.out.println(min_cost);

		}  
    }
    //関数定義
	//public static int funk(long X,long A) {
    //    return ;    
    //}
} public class Main {
	//定義関数から参照できる変数定義はこの辺
	//static Var_form Var_name

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	long wk_cost = 0;
    	long wk_time = 0;
    	long min_cost = Long.MAX_VALUE;
    	String ans="TLE";
    	//Integer.MAX_VALUE;
		long N = sc.nextLong();
		long T = sc.nextLong();
		for(int i=1;i<=N;i++){
			wk_cost=sc.nextLong();
			wk_time=sc.nextLong();
			if (wk_time<=T) {
				min_cost=Math.min(min_cost,wk_cost);
			}
		}
		if (min_cost==Long.MAX_VALUE){
			System.out.println(ans);		
		}
		else{
			System.out.println(min_cost);

		}  
    }
    //関数定義
	//public static int funk(long X,long A) {
    //    return ;    
    //}
} Main
import java.util.*;
public class Main {
	//定義関数から参照できる変数定義はこの辺
	//static Var_form Var_name

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	long wk_cost = 0;
    	long wk_time = 0;
    	long min_cost = Long.MAX_VALUE;
    	String ans="TLE";
    	//Integer.MAX_VALUE;
		long N = sc.nextLong();
		long T = sc.nextLong();
		for(int i=1;i<=N;i++){
			wk_cost=sc.nextLong();
			wk_time=sc.nextLong();
			if (wk_time<=T) {
				min_cost=Math.min(min_cost,wk_cost);
			}
		}
		if (min_cost==Long.MAX_VALUE){
			System.out.println(ans);		
		}
		else{
			System.out.println(min_cost);

		}  
    }
    //関数定義
	//public static int funk(long X,long A) {
    //    return ;    
    //}
}	