import java.lang.reflect.Array;
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		int N = in.nextInt();
		int T = in.nextInt();
		
		int minC = 10000;
		int c = 0;
		int t = 0;
		for(int i=0; i<N; i++) {
			c = in.nextInt();
			t = in.nextInt();
			if(t<=T) {
				if(c < minC) {
					minC = c;
				}
			}
		}
		
		if(minC == 10000) {
			System.out.println("TLE");
		}else {
			System.out.println(minC);
		}
		
		in.close();
	}
} import java.lang.reflect.Array; Array java.lang.reflect import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		int N = in.nextInt();
		int T = in.nextInt();
		
		int minC = 10000;
		int c = 0;
		int t = 0;
		for(int i=0; i<N; i++) {
			c = in.nextInt();
			t = in.nextInt();
			if(t<=T) {
				if(c < minC) {
					minC = c;
				}
			}
		}
		
		if(minC == 10000) {
			System.out.println("TLE");
		}else {
			System.out.println(minC);
		}
		
		in.close();
	}
} Main public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		int N = in.nextInt();
		int T = in.nextInt();
		
		int minC = 10000;
		int c = 0;
		int t = 0;
		for(int i=0; i<N; i++) {
			c = in.nextInt();
			t = in.nextInt();
			if(t<=T) {
				if(c < minC) {
					minC = c;
				}
			}
		}
		
		if(minC == 10000) {
			System.out.println("TLE");
		}else {
			System.out.println(minC);
		}
		
		in.close();
	} main {
		Scanner in = new java.util.Scanner(System.in);
		int N = in.nextInt();
		int T = in.nextInt();
		
		int minC = 10000;
		int c = 0;
		int t = 0;
		for(int i=0; i<N; i++) {
			c = in.nextInt();
			t = in.nextInt();
			if(t<=T) {
				if(c < minC) {
					minC = c;
				}
			}
		}
		
		if(minC == 10000) {
			System.out.println("TLE");
		}else {
			System.out.println(minC);
		}
		
		in.close();
	} Scanner in = new java.util.Scanner(System.in); in new java.util.Scanner(System.in) int N = in.nextInt(); N in.nextInt() in.nextInt in int T = in.nextInt(); T in.nextInt() in.nextInt in int minC = 10000; minC 10000 int c = 0; c 0 int t = 0; t 0 for(int i=0; i<N; i++) {
			c = in.nextInt();
			t = in.nextInt();
			if(t<=T) {
				if(c < minC) {
					minC = c;
				}
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			c = in.nextInt();
			t = in.nextInt();
			if(t<=T) {
				if(c < minC) {
					minC = c;
				}
			}
		} {
			c = in.nextInt();
			t = in.nextInt();
			if(t<=T) {
				if(c < minC) {
					minC = c;
				}
			}
		} c = in.nextInt() c in.nextInt() in.nextInt in t = in.nextInt() t in.nextInt() in.nextInt in if(t<=T) {
				if(c < minC) {
					minC = c;
				}
			} t<=T t T {
				if(c < minC) {
					minC = c;
				}
			} if(c < minC) {
					minC = c;
				} c < minC c minC {
					minC = c;
				} minC = c minC c if(minC == 10000) {
			System.out.println("TLE");
		}else {
			System.out.println(minC);
		} minC == 10000 minC 10000 {
			System.out.println("TLE");
		} System.out.println("TLE") System.out.println System.out System System.out "TLE" {
			System.out.println(minC);
		} System.out.println(minC) System.out.println System.out System System.out minC in.close() in.close in String[] args args public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		int N = in.nextInt();
		int T = in.nextInt();
		
		int minC = 10000;
		int c = 0;
		int t = 0;
		for(int i=0; i<N; i++) {
			c = in.nextInt();
			t = in.nextInt();
			if(t<=T) {
				if(c < minC) {
					minC = c;
				}
			}
		}
		
		if(minC == 10000) {
			System.out.println("TLE");
		}else {
			System.out.println(minC);
		}
		
		in.close();
	}
} public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		int N = in.nextInt();
		int T = in.nextInt();
		
		int minC = 10000;
		int c = 0;
		int t = 0;
		for(int i=0; i<N; i++) {
			c = in.nextInt();
			t = in.nextInt();
			if(t<=T) {
				if(c < minC) {
					minC = c;
				}
			}
		}
		
		if(minC == 10000) {
			System.out.println("TLE");
		}else {
			System.out.println(minC);
		}
		
		in.close();
	}
} Main
import java.lang.reflect.Array;
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner in = new java.util.Scanner(System.in);
		int N = in.nextInt();
		int T = in.nextInt();
		
		int minC = 10000;
		int c = 0;
		int t = 0;
		for(int i=0; i<N; i++) {
			c = in.nextInt();
			t = in.nextInt();
			if(t<=T) {
				if(c < minC) {
					minC = c;
				}
			}
		}
		
		if(minC == 10000) {
			System.out.println("TLE");
		}else {
			System.out.println(minC);
		}
		
		in.close();
	}
}
