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[] cc = new int[n];
		int[] tt = new int[n]; 
		
		for(int i=0;i<n;i++){
			cc[i] = sc.nextInt();
			tt[i] = sc.nextInt();
		}
		
		int min = Integer.MAX_VALUE;
		for(int i=0;i<n;i++){
			if(tt[i]<=t && cc[i]<min)
				min=cc[i];
		}
		
		System.out.println(min==Integer.MAX_VALUE ? "TLE" : min);
	}
}
/*
3 70
7 60
1 80
4 50
*/ 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[] cc = new int[n];
		int[] tt = new int[n]; 
		
		for(int i=0;i<n;i++){
			cc[i] = sc.nextInt();
			tt[i] = sc.nextInt();
		}
		
		int min = Integer.MAX_VALUE;
		for(int i=0;i<n;i++){
			if(tt[i]<=t && cc[i]<min)
				min=cc[i];
		}
		
		System.out.println(min==Integer.MAX_VALUE ? "TLE" : min);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		int t = sc.nextInt();
		
		int[] cc = new int[n];
		int[] tt = new int[n]; 
		
		for(int i=0;i<n;i++){
			cc[i] = sc.nextInt();
			tt[i] = sc.nextInt();
		}
		
		int min = Integer.MAX_VALUE;
		for(int i=0;i<n;i++){
			if(tt[i]<=t && cc[i]<min)
				min=cc[i];
		}
		
		System.out.println(min==Integer.MAX_VALUE ? "TLE" : min);
	} main {
		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		int t = sc.nextInt();
		
		int[] cc = new int[n];
		int[] tt = new int[n]; 
		
		for(int i=0;i<n;i++){
			cc[i] = sc.nextInt();
			tt[i] = sc.nextInt();
		}
		
		int min = Integer.MAX_VALUE;
		for(int i=0;i<n;i++){
			if(tt[i]<=t && cc[i]<min)
				min=cc[i];
		}
		
		System.out.println(min==Integer.MAX_VALUE ? "TLE" : 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[] cc = new int[n]; cc new int[n] n int[] tt = new int[n]; tt new int[n] n for(int i=0;i<n;i++){
			cc[i] = sc.nextInt();
			tt[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			cc[i] = sc.nextInt();
			tt[i] = sc.nextInt();
		} {
			cc[i] = sc.nextInt();
			tt[i] = sc.nextInt();
		} cc[i] = sc.nextInt() cc[i] cc i sc.nextInt() sc.nextInt sc tt[i] = sc.nextInt() tt[i] tt i sc.nextInt() sc.nextInt sc int min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i=0;i<n;i++){
			if(tt[i]<=t && cc[i]<min)
				min=cc[i];
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			if(tt[i]<=t && cc[i]<min)
				min=cc[i];
		} {
			if(tt[i]<=t && cc[i]<min)
				min=cc[i];
		} if(tt[i]<=t && cc[i]<min)
				min=cc[i]; tt[i]<=t && cc[i]<min tt[i]<=t tt[i] tt i t cc[i]<min cc[i] cc i min min=cc[i] min cc[i] cc i System.out.println(min==Integer.MAX_VALUE ? "TLE" : min) System.out.println System.out System System.out min==Integer.MAX_VALUE ? "TLE" : min min==Integer.MAX_VALUE min Integer.MAX_VALUE Integer Integer.MAX_VALUE "TLE" 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[] cc = new int[n];
		int[] tt = new int[n]; 
		
		for(int i=0;i<n;i++){
			cc[i] = sc.nextInt();
			tt[i] = sc.nextInt();
		}
		
		int min = Integer.MAX_VALUE;
		for(int i=0;i<n;i++){
			if(tt[i]<=t && cc[i]<min)
				min=cc[i];
		}
		
		System.out.println(min==Integer.MAX_VALUE ? "TLE" : 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[] cc = new int[n];
		int[] tt = new int[n]; 
		
		for(int i=0;i<n;i++){
			cc[i] = sc.nextInt();
			tt[i] = sc.nextInt();
		}
		
		int min = Integer.MAX_VALUE;
		for(int i=0;i<n;i++){
			if(tt[i]<=t && cc[i]<min)
				min=cc[i];
		}
		
		System.out.println(min==Integer.MAX_VALUE ? "TLE" : 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[] cc = new int[n];
		int[] tt = new int[n]; 
		
		for(int i=0;i<n;i++){
			cc[i] = sc.nextInt();
			tt[i] = sc.nextInt();
		}
		
		int min = Integer.MAX_VALUE;
		for(int i=0;i<n;i++){
			if(tt[i]<=t && cc[i]<min)
				min=cc[i];
		}
		
		System.out.println(min==Integer.MAX_VALUE ? "TLE" : min);
	}
}
/*
3 70
7 60
1 80
4 50
*/