import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());

		int min= Integer.MAX_VALUE;
		for(int i=0; i<N; i++){
			int a=Integer.parseInt(sc.next());
			int b=Integer.parseInt(sc.next());
			if(b <= T){
				min = Math.min(min, a);
			}
		}
		if(min==Integer.MAX_VALUE){
			System.out.println("TLE");
		} else {
			System.out.println(min);
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());

		int min= Integer.MAX_VALUE;
		for(int i=0; i<N; i++){
			int a=Integer.parseInt(sc.next());
			int b=Integer.parseInt(sc.next());
			if(b <= T){
				min = Math.min(min, a);
			}
		}
		if(min==Integer.MAX_VALUE){
			System.out.println("TLE");
		} else {
			System.out.println(min);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());

		int min= Integer.MAX_VALUE;
		for(int i=0; i<N; i++){
			int a=Integer.parseInt(sc.next());
			int b=Integer.parseInt(sc.next());
			if(b <= T){
				min = Math.min(min, a);
			}
		}
		if(min==Integer.MAX_VALUE){
			System.out.println("TLE");
		} else {
			System.out.println(min);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());

		int min= Integer.MAX_VALUE;
		for(int i=0; i<N; i++){
			int a=Integer.parseInt(sc.next());
			int b=Integer.parseInt(sc.next());
			if(b <= T){
				min = Math.min(min, a);
			}
		}
		if(min==Integer.MAX_VALUE){
			System.out.println("TLE");
		} else {
			System.out.println(min);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int T = Integer.parseInt(sc.next()); T Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int min= Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i=0; i<N; i++){
			int a=Integer.parseInt(sc.next());
			int b=Integer.parseInt(sc.next());
			if(b <= T){
				min = Math.min(min, a);
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			int a=Integer.parseInt(sc.next());
			int b=Integer.parseInt(sc.next());
			if(b <= T){
				min = Math.min(min, a);
			}
		} {
			int a=Integer.parseInt(sc.next());
			int b=Integer.parseInt(sc.next());
			if(b <= T){
				min = Math.min(min, a);
			}
		} int a=Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b=Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(b <= T){
				min = Math.min(min, a);
			} b <= T b T {
				min = Math.min(min, a);
			} min = Math.min(min, a) min Math.min(min, a) Math.min Math min a if(min==Integer.MAX_VALUE){
			System.out.println("TLE");
		} else {
			System.out.println(min);
		} min==Integer.MAX_VALUE min Integer.MAX_VALUE Integer Integer.MAX_VALUE {
			System.out.println("TLE");
		} System.out.println("TLE") System.out.println System.out System System.out "TLE" {
			System.out.println(min);
		} System.out.println(min) System.out.println System.out System System.out min String[] args args
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());

		int min= Integer.MAX_VALUE;
		for(int i=0; i<N; i++){
			int a=Integer.parseInt(sc.next());
			int b=Integer.parseInt(sc.next());
			if(b <= T){
				min = Math.min(min, a);
			}
		}
		if(min==Integer.MAX_VALUE){
			System.out.println("TLE");
		} else {
			System.out.println(min);
		}
	}
}
