import java.util.Scanner;

public class Main {
	static Scanner sc = new Scanner(System.in);
	static int N;
	static int T;


	public static void main(String[] args) {
		N = sc.nextInt();
		T = sc.nextInt();

		int min = Integer.MAX_VALUE;
		for (int i = 0; i < N; i++) {
			int c = sc.nextInt();
			int t = sc.nextInt();

			if (t <= T) {
				min = Math.min(min, c);
			}
		}

		System.out.println(min == Integer.MAX_VALUE ? "TLE" : min);
	}

} import java.util.Scanner; Scanner java.util public class Main {
	static Scanner sc = new Scanner(System.in);
	static int N;
	static int T;


	public static void main(String[] args) {
		N = sc.nextInt();
		T = sc.nextInt();

		int min = Integer.MAX_VALUE;
		for (int i = 0; i < N; i++) {
			int c = sc.nextInt();
			int t = sc.nextInt();

			if (t <= T) {
				min = Math.min(min, c);
			}
		}

		System.out.println(min == Integer.MAX_VALUE ? "TLE" : min);
	}

} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static int N; N static int T; T public static void main(String[] args) {
		N = sc.nextInt();
		T = sc.nextInt();

		int min = Integer.MAX_VALUE;
		for (int i = 0; i < N; i++) {
			int c = sc.nextInt();
			int t = sc.nextInt();

			if (t <= T) {
				min = Math.min(min, c);
			}
		}

		System.out.println(min == Integer.MAX_VALUE ? "TLE" : min);
	} main {
		N = sc.nextInt();
		T = sc.nextInt();

		int min = Integer.MAX_VALUE;
		for (int i = 0; i < N; i++) {
			int c = sc.nextInt();
			int t = sc.nextInt();

			if (t <= T) {
				min = Math.min(min, c);
			}
		}

		System.out.println(min == Integer.MAX_VALUE ? "TLE" : min);
	} N = sc.nextInt() N sc.nextInt() sc.nextInt sc T = sc.nextInt() T sc.nextInt() sc.nextInt sc int min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < N; i++) {
			int c = sc.nextInt();
			int t = sc.nextInt();

			if (t <= T) {
				min = Math.min(min, c);
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int c = sc.nextInt();
			int t = sc.nextInt();

			if (t <= T) {
				min = Math.min(min, c);
			}
		} {
			int c = sc.nextInt();
			int t = sc.nextInt();

			if (t <= T) {
				min = Math.min(min, c);
			}
		} int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc if (t <= T) {
				min = Math.min(min, c);
			} t <= T t T {
				min = Math.min(min, c);
			} min = Math.min(min, c) min Math.min(min, c) Math.min Math min c System.out.println(min == Integer.MAX_VALUE ? "TLE" : min) System.out.println System.out System System.out min == Integer.MAX_VALUE ? "TLE" : min min == Integer.MAX_VALUE min Integer.MAX_VALUE Integer Integer.MAX_VALUE "TLE" min String[] args args public class Main {
	static Scanner sc = new Scanner(System.in);
	static int N;
	static int T;


	public static void main(String[] args) {
		N = sc.nextInt();
		T = sc.nextInt();

		int min = Integer.MAX_VALUE;
		for (int i = 0; i < N; i++) {
			int c = sc.nextInt();
			int t = sc.nextInt();

			if (t <= T) {
				min = Math.min(min, c);
			}
		}

		System.out.println(min == Integer.MAX_VALUE ? "TLE" : min);
	}

} public class Main {
	static Scanner sc = new Scanner(System.in);
	static int N;
	static int T;


	public static void main(String[] args) {
		N = sc.nextInt();
		T = sc.nextInt();

		int min = Integer.MAX_VALUE;
		for (int i = 0; i < N; i++) {
			int c = sc.nextInt();
			int t = sc.nextInt();

			if (t <= T) {
				min = Math.min(min, c);
			}
		}

		System.out.println(min == Integer.MAX_VALUE ? "TLE" : min);
	}

} Main
import java.util.Scanner;

public class Main {
	static Scanner sc = new Scanner(System.in);
	static int N;
	static int T;


	public static void main(String[] args) {
		N = sc.nextInt();
		T = sc.nextInt();

		int min = Integer.MAX_VALUE;
		for (int i = 0; i < N; i++) {
			int c = sc.nextInt();
			int t = sc.nextInt();

			if (t <= T) {
				min = Math.min(min, c);
			}
		}

		System.out.println(min == Integer.MAX_VALUE ? "TLE" : min);
	}

}