import 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 res = 9999;
		for (int i=0;i<n;i++) {
			int ci = sc.nextInt();
			int ti = sc.nextInt();
			if (ti <= t && ci < res) {
				res = ci;
			}
		}
		if (res != 9999) {
			System.out.println(res);
		} else {
			System.out.println("TLE");
		}
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		
		int res = 9999;
		for (int i=0;i<n;i++) {
			int ci = sc.nextInt();
			int ti = sc.nextInt();
			if (ti <= t && ci < res) {
				res = ci;
			}
		}
		if (res != 9999) {
			System.out.println(res);
		} else {
			System.out.println("TLE");
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		
		int res = 9999;
		for (int i=0;i<n;i++) {
			int ci = sc.nextInt();
			int ti = sc.nextInt();
			if (ti <= t && ci < res) {
				res = ci;
			}
		}
		if (res != 9999) {
			System.out.println(res);
		} else {
			System.out.println("TLE");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		
		int res = 9999;
		for (int i=0;i<n;i++) {
			int ci = sc.nextInt();
			int ti = sc.nextInt();
			if (ti <= t && ci < res) {
				res = ci;
			}
		}
		if (res != 9999) {
			System.out.println(res);
		} else {
			System.out.println("TLE");
		}
	} 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 res = 9999; res 9999 for (int i=0;i<n;i++) {
			int ci = sc.nextInt();
			int ti = sc.nextInt();
			if (ti <= t && ci < res) {
				res = ci;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			int ci = sc.nextInt();
			int ti = sc.nextInt();
			if (ti <= t && ci < res) {
				res = ci;
			}
		} {
			int ci = sc.nextInt();
			int ti = sc.nextInt();
			if (ti <= t && ci < res) {
				res = ci;
			}
		} int ci = sc.nextInt(); ci sc.nextInt() sc.nextInt sc int ti = sc.nextInt(); ti sc.nextInt() sc.nextInt sc if (ti <= t && ci < res) {
				res = ci;
			} ti <= t && ci < res ti <= t ti t ci < res ci res {
				res = ci;
			} res = ci res ci if (res != 9999) {
			System.out.println(res);
		} else {
			System.out.println("TLE");
		} res != 9999 res 9999 {
			System.out.println(res);
		} System.out.println(res) System.out.println System.out System System.out res {
			System.out.println("TLE");
		} System.out.println("TLE") System.out.println System.out System System.out "TLE" 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 res = 9999;
		for (int i=0;i<n;i++) {
			int ci = sc.nextInt();
			int ti = sc.nextInt();
			if (ti <= t && ci < res) {
				res = ci;
			}
		}
		if (res != 9999) {
			System.out.println(res);
		} else {
			System.out.println("TLE");
		}
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		
		int res = 9999;
		for (int i=0;i<n;i++) {
			int ci = sc.nextInt();
			int ti = sc.nextInt();
			if (ti <= t && ci < res) {
				res = ci;
			}
		}
		if (res != 9999) {
			System.out.println(res);
		} else {
			System.out.println("TLE");
		}
	}
} Main
import 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 res = 9999;
		for (int i=0;i<n;i++) {
			int ci = sc.nextInt();
			int ti = sc.nextInt();
			if (ti <= t && ci < res) {
				res = ci;
			}
		}
		if (res != 9999) {
			System.out.println(res);
		} else {
			System.out.println("TLE");
		}
	}
}