import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] sa = br.readLine().split(" ");
		int n = Integer.parseInt(sa[0]);
		int t = Integer.parseInt(sa[1]);
		int ans = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			sa = br.readLine().split(" ");
			int a = Integer.parseInt(sa[0]);
			int b = Integer.parseInt(sa[1]);
			if (b <= t) {
				ans = Math.min(ans, a);
			}
		}
		br.close();

		if (ans == Integer.MAX_VALUE) {
			System.out.println("TLE");
		} else {
			System.out.println(ans);
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] sa = br.readLine().split(" ");
		int n = Integer.parseInt(sa[0]);
		int t = Integer.parseInt(sa[1]);
		int ans = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			sa = br.readLine().split(" ");
			int a = Integer.parseInt(sa[0]);
			int b = Integer.parseInt(sa[1]);
			if (b <= t) {
				ans = Math.min(ans, a);
			}
		}
		br.close();

		if (ans == Integer.MAX_VALUE) {
			System.out.println("TLE");
		} else {
			System.out.println(ans);
		}
	}
} Main public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] sa = br.readLine().split(" ");
		int n = Integer.parseInt(sa[0]);
		int t = Integer.parseInt(sa[1]);
		int ans = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			sa = br.readLine().split(" ");
			int a = Integer.parseInt(sa[0]);
			int b = Integer.parseInt(sa[1]);
			if (b <= t) {
				ans = Math.min(ans, a);
			}
		}
		br.close();

		if (ans == Integer.MAX_VALUE) {
			System.out.println("TLE");
		} else {
			System.out.println(ans);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] sa = br.readLine().split(" ");
		int n = Integer.parseInt(sa[0]);
		int t = Integer.parseInt(sa[1]);
		int ans = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			sa = br.readLine().split(" ");
			int a = Integer.parseInt(sa[0]);
			int b = Integer.parseInt(sa[1]);
			if (b <= t) {
				ans = Math.min(ans, a);
			}
		}
		br.close();

		if (ans == Integer.MAX_VALUE) {
			System.out.println("TLE");
		} else {
			System.out.println(ans);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] sa = br.readLine().split(" "); sa br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(sa[0]); n Integer.parseInt(sa[0]) Integer.parseInt Integer sa[0] sa 0 int t = Integer.parseInt(sa[1]); t Integer.parseInt(sa[1]) Integer.parseInt Integer sa[1] sa 1 int ans = Integer.MAX_VALUE; ans Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < n; i++) {
			sa = br.readLine().split(" ");
			int a = Integer.parseInt(sa[0]);
			int b = Integer.parseInt(sa[1]);
			if (b <= t) {
				ans = Math.min(ans, a);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			sa = br.readLine().split(" ");
			int a = Integer.parseInt(sa[0]);
			int b = Integer.parseInt(sa[1]);
			if (b <= t) {
				ans = Math.min(ans, a);
			}
		} {
			sa = br.readLine().split(" ");
			int a = Integer.parseInt(sa[0]);
			int b = Integer.parseInt(sa[1]);
			if (b <= t) {
				ans = Math.min(ans, a);
			}
		} sa = br.readLine().split(" ") sa br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(sa[0]); a Integer.parseInt(sa[0]) Integer.parseInt Integer sa[0] sa 0 int b = Integer.parseInt(sa[1]); b Integer.parseInt(sa[1]) Integer.parseInt Integer sa[1] sa 1 if (b <= t) {
				ans = Math.min(ans, a);
			} b <= t b t {
				ans = Math.min(ans, a);
			} ans = Math.min(ans, a) ans Math.min(ans, a) Math.min Math ans a br.close() br.close br if (ans == Integer.MAX_VALUE) {
			System.out.println("TLE");
		} else {
			System.out.println(ans);
		} ans == Integer.MAX_VALUE ans 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(ans);
		} System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] sa = br.readLine().split(" ");
		int n = Integer.parseInt(sa[0]);
		int t = Integer.parseInt(sa[1]);
		int ans = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			sa = br.readLine().split(" ");
			int a = Integer.parseInt(sa[0]);
			int b = Integer.parseInt(sa[1]);
			if (b <= t) {
				ans = Math.min(ans, a);
			}
		}
		br.close();

		if (ans == Integer.MAX_VALUE) {
			System.out.println("TLE");
		} else {
			System.out.println(ans);
		}
	}
} public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] sa = br.readLine().split(" ");
		int n = Integer.parseInt(sa[0]);
		int t = Integer.parseInt(sa[1]);
		int ans = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			sa = br.readLine().split(" ");
			int a = Integer.parseInt(sa[0]);
			int b = Integer.parseInt(sa[1]);
			if (b <= t) {
				ans = Math.min(ans, a);
			}
		}
		br.close();

		if (ans == Integer.MAX_VALUE) {
			System.out.println("TLE");
		} else {
			System.out.println(ans);
		}
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] sa = br.readLine().split(" ");
		int n = Integer.parseInt(sa[0]);
		int t = Integer.parseInt(sa[1]);
		int ans = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			sa = br.readLine().split(" ");
			int a = Integer.parseInt(sa[0]);
			int b = Integer.parseInt(sa[1]);
			if (b <= t) {
				ans = Math.min(ans, a);
			}
		}
		br.close();

		if (ans == Integer.MAX_VALUE) {
			System.out.println("TLE");
		} else {
			System.out.println(ans);
		}
	}
}
