
import java.util.Scanner;

public 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 ans = 1001;
		for (int i = 0; i < N; i++) {
			int c = Integer.parseInt(sc.next());
			int t = Integer.parseInt(sc.next());
			if (t <= T) {
				ans = Math.min(ans, c);
			}
		}
		System.out.println(ans == 1001 ? "TLE" : ans);
		sc.close();

	}
} import java.util.Scanner; Scanner java.util public 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 ans = 1001;
		for (int i = 0; i < N; i++) {
			int c = Integer.parseInt(sc.next());
			int t = Integer.parseInt(sc.next());
			if (t <= T) {
				ans = Math.min(ans, c);
			}
		}
		System.out.println(ans == 1001 ? "TLE" : ans);
		sc.close();

	}
} 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 ans = 1001;
		for (int i = 0; i < N; i++) {
			int c = Integer.parseInt(sc.next());
			int t = Integer.parseInt(sc.next());
			if (t <= T) {
				ans = Math.min(ans, c);
			}
		}
		System.out.println(ans == 1001 ? "TLE" : ans);
		sc.close();

	} main {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		int ans = 1001;
		for (int i = 0; i < N; i++) {
			int c = Integer.parseInt(sc.next());
			int t = Integer.parseInt(sc.next());
			if (t <= T) {
				ans = Math.min(ans, c);
			}
		}
		System.out.println(ans == 1001 ? "TLE" : ans);
		sc.close();

	} 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 ans = 1001; ans 1001 for (int i = 0; i < N; i++) {
			int c = Integer.parseInt(sc.next());
			int t = Integer.parseInt(sc.next());
			if (t <= T) {
				ans = Math.min(ans, c);
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int c = Integer.parseInt(sc.next());
			int t = Integer.parseInt(sc.next());
			if (t <= T) {
				ans = Math.min(ans, c);
			}
		} {
			int c = Integer.parseInt(sc.next());
			int t = Integer.parseInt(sc.next());
			if (t <= T) {
				ans = Math.min(ans, c);
			}
		} int c = Integer.parseInt(sc.next()); c 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 if (t <= T) {
				ans = Math.min(ans, c);
			} t <= T t T {
				ans = Math.min(ans, c);
			} ans = Math.min(ans, c) ans Math.min(ans, c) Math.min Math ans c System.out.println(ans == 1001 ? "TLE" : ans) System.out.println System.out System System.out ans == 1001 ? "TLE" : ans ans == 1001 ans 1001 "TLE" ans sc.close() sc.close sc String[] args args public 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 ans = 1001;
		for (int i = 0; i < N; i++) {
			int c = Integer.parseInt(sc.next());
			int t = Integer.parseInt(sc.next());
			if (t <= T) {
				ans = Math.min(ans, c);
			}
		}
		System.out.println(ans == 1001 ? "TLE" : ans);
		sc.close();

	}
} public 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 ans = 1001;
		for (int i = 0; i < N; i++) {
			int c = Integer.parseInt(sc.next());
			int t = Integer.parseInt(sc.next());
			if (t <= T) {
				ans = Math.min(ans, c);
			}
		}
		System.out.println(ans == 1001 ? "TLE" : ans);
		sc.close();

	}
} Main

import java.util.Scanner;

public 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 ans = 1001;
		for (int i = 0; i < N; i++) {
			int c = Integer.parseInt(sc.next());
			int t = Integer.parseInt(sc.next());
			if (t <= T) {
				ans = Math.min(ans, c);
			}
		}
		System.out.println(ans == 1001 ? "TLE" : ans);
		sc.close();

	}
}
