import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int [] cArray = new int [n];
		int [] tArray = new int [n];
		int cmin = 1001;
		for(int i = 0; i < n; i++) {
			cArray[i] = sc.nextInt();
			tArray[i] = sc.nextInt();
			
			if(tArray[i] <= t) {
				if(cmin > cArray[i]) {
					cmin = cArray[i];
				}
			}
		}
		
		if(cmin == 1001) System.out.println("TLE");
		else System.out.println(cmin);
		
		sc.close();
	}

} import java.util.Scanner; Scanner 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 [] cArray = new int [n];
		int [] tArray = new int [n];
		int cmin = 1001;
		for(int i = 0; i < n; i++) {
			cArray[i] = sc.nextInt();
			tArray[i] = sc.nextInt();
			
			if(tArray[i] <= t) {
				if(cmin > cArray[i]) {
					cmin = cArray[i];
				}
			}
		}
		
		if(cmin == 1001) System.out.println("TLE");
		else System.out.println(cmin);
		
		sc.close();
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int [] cArray = new int [n];
		int [] tArray = new int [n];
		int cmin = 1001;
		for(int i = 0; i < n; i++) {
			cArray[i] = sc.nextInt();
			tArray[i] = sc.nextInt();
			
			if(tArray[i] <= t) {
				if(cmin > cArray[i]) {
					cmin = cArray[i];
				}
			}
		}
		
		if(cmin == 1001) System.out.println("TLE");
		else System.out.println(cmin);
		
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int [] cArray = new int [n];
		int [] tArray = new int [n];
		int cmin = 1001;
		for(int i = 0; i < n; i++) {
			cArray[i] = sc.nextInt();
			tArray[i] = sc.nextInt();
			
			if(tArray[i] <= t) {
				if(cmin > cArray[i]) {
					cmin = cArray[i];
				}
			}
		}
		
		if(cmin == 1001) System.out.println("TLE");
		else System.out.println(cmin);
		
		sc.close();
	} 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 [] cArray = new int [n]; cArray new int [n] n int [] tArray = new int [n]; tArray new int [n] n int cmin = 1001; cmin 1001 for(int i = 0; i < n; i++) {
			cArray[i] = sc.nextInt();
			tArray[i] = sc.nextInt();
			
			if(tArray[i] <= t) {
				if(cmin > cArray[i]) {
					cmin = cArray[i];
				}
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			cArray[i] = sc.nextInt();
			tArray[i] = sc.nextInt();
			
			if(tArray[i] <= t) {
				if(cmin > cArray[i]) {
					cmin = cArray[i];
				}
			}
		} {
			cArray[i] = sc.nextInt();
			tArray[i] = sc.nextInt();
			
			if(tArray[i] <= t) {
				if(cmin > cArray[i]) {
					cmin = cArray[i];
				}
			}
		} cArray[i] = sc.nextInt() cArray[i] cArray i sc.nextInt() sc.nextInt sc tArray[i] = sc.nextInt() tArray[i] tArray i sc.nextInt() sc.nextInt sc if(tArray[i] <= t) {
				if(cmin > cArray[i]) {
					cmin = cArray[i];
				}
			} tArray[i] <= t tArray[i] tArray i t {
				if(cmin > cArray[i]) {
					cmin = cArray[i];
				}
			} if(cmin > cArray[i]) {
					cmin = cArray[i];
				} cmin > cArray[i] cmin cArray[i] cArray i {
					cmin = cArray[i];
				} cmin = cArray[i] cmin cArray[i] cArray i if(cmin == 1001) System.out.println("TLE");
		else System.out.println(cmin); cmin == 1001 cmin 1001 System.out.println("TLE") System.out.println System.out System System.out "TLE" System.out.println(cmin) System.out.println System.out System System.out cmin sc.close() sc.close sc 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 [] cArray = new int [n];
		int [] tArray = new int [n];
		int cmin = 1001;
		for(int i = 0; i < n; i++) {
			cArray[i] = sc.nextInt();
			tArray[i] = sc.nextInt();
			
			if(tArray[i] <= t) {
				if(cmin > cArray[i]) {
					cmin = cArray[i];
				}
			}
		}
		
		if(cmin == 1001) System.out.println("TLE");
		else System.out.println(cmin);
		
		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int [] cArray = new int [n];
		int [] tArray = new int [n];
		int cmin = 1001;
		for(int i = 0; i < n; i++) {
			cArray[i] = sc.nextInt();
			tArray[i] = sc.nextInt();
			
			if(tArray[i] <= t) {
				if(cmin > cArray[i]) {
					cmin = cArray[i];
				}
			}
		}
		
		if(cmin == 1001) System.out.println("TLE");
		else System.out.println(cmin);
		
		sc.close();
	}

} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int [] cArray = new int [n];
		int [] tArray = new int [n];
		int cmin = 1001;
		for(int i = 0; i < n; i++) {
			cArray[i] = sc.nextInt();
			tArray[i] = sc.nextInt();
			
			if(tArray[i] <= t) {
				if(cmin > cArray[i]) {
					cmin = cArray[i];
				}
			}
		}
		
		if(cmin == 1001) System.out.println("TLE");
		else System.out.println(cmin);
		
		sc.close();
	}

}
