import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();
		int ans=1145148100;
		for(int i=0;i!=a;i++){
			int c=scan.nextInt();
			int d=scan.nextInt();
			if(d<=b) {
				if(c<=ans) {
					ans=c;
				}
			}
		}
		System.out.println(ans==1145148100?"TLE":ans);
		}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();
		int ans=1145148100;
		for(int i=0;i!=a;i++){
			int c=scan.nextInt();
			int d=scan.nextInt();
			if(d<=b) {
				if(c<=ans) {
					ans=c;
				}
			}
		}
		System.out.println(ans==1145148100?"TLE":ans);
		}
} Main public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();
		int ans=1145148100;
		for(int i=0;i!=a;i++){
			int c=scan.nextInt();
			int d=scan.nextInt();
			if(d<=b) {
				if(c<=ans) {
					ans=c;
				}
			}
		}
		System.out.println(ans==1145148100?"TLE":ans);
		} main {
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();
		int ans=1145148100;
		for(int i=0;i!=a;i++){
			int c=scan.nextInt();
			int d=scan.nextInt();
			if(d<=b) {
				if(c<=ans) {
					ans=c;
				}
			}
		}
		System.out.println(ans==1145148100?"TLE":ans);
		} Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int a=scan.nextInt(); a scan.nextInt() scan.nextInt scan int b=scan.nextInt(); b scan.nextInt() scan.nextInt scan int ans=1145148100; ans 1145148100 for(int i=0;i!=a;i++){
			int c=scan.nextInt();
			int d=scan.nextInt();
			if(d<=b) {
				if(c<=ans) {
					ans=c;
				}
			}
		} int i=0; int i=0; i 0 i!=a i a i++ i++ i {
			int c=scan.nextInt();
			int d=scan.nextInt();
			if(d<=b) {
				if(c<=ans) {
					ans=c;
				}
			}
		} {
			int c=scan.nextInt();
			int d=scan.nextInt();
			if(d<=b) {
				if(c<=ans) {
					ans=c;
				}
			}
		} int c=scan.nextInt(); c scan.nextInt() scan.nextInt scan int d=scan.nextInt(); d scan.nextInt() scan.nextInt scan if(d<=b) {
				if(c<=ans) {
					ans=c;
				}
			} d<=b d b {
				if(c<=ans) {
					ans=c;
				}
			} if(c<=ans) {
					ans=c;
				} c<=ans c ans {
					ans=c;
				} ans=c ans c System.out.println(ans==1145148100?"TLE":ans) System.out.println System.out System System.out ans==1145148100?"TLE":ans ans==1145148100 ans 1145148100 "TLE" ans String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();
		int ans=1145148100;
		for(int i=0;i!=a;i++){
			int c=scan.nextInt();
			int d=scan.nextInt();
			if(d<=b) {
				if(c<=ans) {
					ans=c;
				}
			}
		}
		System.out.println(ans==1145148100?"TLE":ans);
		}
} public class Main {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();
		int ans=1145148100;
		for(int i=0;i!=a;i++){
			int c=scan.nextInt();
			int d=scan.nextInt();
			if(d<=b) {
				if(c<=ans) {
					ans=c;
				}
			}
		}
		System.out.println(ans==1145148100?"TLE":ans);
		}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();
		int ans=1145148100;
		for(int i=0;i!=a;i++){
			int c=scan.nextInt();
			int d=scan.nextInt();
			if(d<=b) {
				if(c<=ans) {
					ans=c;
				}
			}
		}
		System.out.println(ans==1145148100?"TLE":ans);
		}
}