import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N=sc.nextInt(),T=sc.nextInt();
		int minCost = 1001;
		for(int i =0; i<N; i++) {
			int cost = sc.nextInt(),time = sc.nextInt();
			if(time > T) continue;
			if(minCost > cost) minCost = cost;
		}
		System.out.println(minCost == 1001? "TLE":minCost);
	}
} 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(),T=sc.nextInt();
		int minCost = 1001;
		for(int i =0; i<N; i++) {
			int cost = sc.nextInt(),time = sc.nextInt();
			if(time > T) continue;
			if(minCost > cost) minCost = cost;
		}
		System.out.println(minCost == 1001? "TLE":minCost);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N=sc.nextInt(),T=sc.nextInt();
		int minCost = 1001;
		for(int i =0; i<N; i++) {
			int cost = sc.nextInt(),time = sc.nextInt();
			if(time > T) continue;
			if(minCost > cost) minCost = cost;
		}
		System.out.println(minCost == 1001? "TLE":minCost);
	} main {
		Scanner sc = new Scanner(System.in);
		int N=sc.nextInt(),T=sc.nextInt();
		int minCost = 1001;
		for(int i =0; i<N; i++) {
			int cost = sc.nextInt(),time = sc.nextInt();
			if(time > T) continue;
			if(minCost > cost) minCost = cost;
		}
		System.out.println(minCost == 1001? "TLE":minCost);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N=sc.nextInt() N sc.nextInt() sc.nextInt sc T=sc.nextInt(); T sc.nextInt() sc.nextInt sc int minCost = 1001; minCost 1001 for(int i =0; i<N; i++) {
			int cost = sc.nextInt(),time = sc.nextInt();
			if(time > T) continue;
			if(minCost > cost) minCost = cost;
		} int i =0; int i =0; i 0 i<N i N i++ i++ i {
			int cost = sc.nextInt(),time = sc.nextInt();
			if(time > T) continue;
			if(minCost > cost) minCost = cost;
		} {
			int cost = sc.nextInt(),time = sc.nextInt();
			if(time > T) continue;
			if(minCost > cost) minCost = cost;
		} int cost = sc.nextInt() cost sc.nextInt() sc.nextInt sc time = sc.nextInt(); time sc.nextInt() sc.nextInt sc if(time > T) continue; time > T time T continue; if(minCost > cost) minCost = cost; minCost > cost minCost cost minCost = cost minCost cost System.out.println(minCost == 1001? "TLE":minCost) System.out.println System.out System System.out minCost == 1001? "TLE":minCost minCost == 1001 minCost 1001 "TLE" minCost String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N=sc.nextInt(),T=sc.nextInt();
		int minCost = 1001;
		for(int i =0; i<N; i++) {
			int cost = sc.nextInt(),time = sc.nextInt();
			if(time > T) continue;
			if(minCost > cost) minCost = cost;
		}
		System.out.println(minCost == 1001? "TLE":minCost);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N=sc.nextInt(),T=sc.nextInt();
		int minCost = 1001;
		for(int i =0; i<N; i++) {
			int cost = sc.nextInt(),time = sc.nextInt();
			if(time > T) continue;
			if(minCost > cost) minCost = cost;
		}
		System.out.println(minCost == 1001? "TLE":minCost);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N=sc.nextInt(),T=sc.nextInt();
		int minCost = 1001;
		for(int i =0; i<N; i++) {
			int cost = sc.nextInt(),time = sc.nextInt();
			if(time > T) continue;
			if(minCost > cost) minCost = cost;
		}
		System.out.println(minCost == 1001? "TLE":minCost);
	}
}
