
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int t = sc.nextInt();
		
		int ans = 2000;
		
		for (int i = 0; i < n; i++) {
			int c = sc.nextInt();
			int t2 = sc.nextInt();
			if (t2 > t) continue;
			ans = Math.min(ans, c);
		}
		
		System.out.println((ans != 2000) ? ans : "TLE");
		
	}

} import java.util.Scanner; Scanner 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 ans = 2000;
		
		for (int i = 0; i < n; i++) {
			int c = sc.nextInt();
			int t2 = sc.nextInt();
			if (t2 > t) continue;
			ans = Math.min(ans, c);
		}
		
		System.out.println((ans != 2000) ? ans : "TLE");
		
	}

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int t = sc.nextInt();
		
		int ans = 2000;
		
		for (int i = 0; i < n; i++) {
			int c = sc.nextInt();
			int t2 = sc.nextInt();
			if (t2 > t) continue;
			ans = Math.min(ans, c);
		}
		
		System.out.println((ans != 2000) ? ans : "TLE");
		
	} main {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int t = sc.nextInt();
		
		int ans = 2000;
		
		for (int i = 0; i < n; i++) {
			int c = sc.nextInt();
			int t2 = sc.nextInt();
			if (t2 > t) continue;
			ans = Math.min(ans, c);
		}
		
		System.out.println((ans != 2000) ? ans : "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 ans = 2000; ans 2000 for (int i = 0; i < n; i++) {
			int c = sc.nextInt();
			int t2 = sc.nextInt();
			if (t2 > t) continue;
			ans = Math.min(ans, c);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int c = sc.nextInt();
			int t2 = sc.nextInt();
			if (t2 > t) continue;
			ans = Math.min(ans, c);
		} {
			int c = sc.nextInt();
			int t2 = sc.nextInt();
			if (t2 > t) continue;
			ans = Math.min(ans, c);
		} int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int t2 = sc.nextInt(); t2 sc.nextInt() sc.nextInt sc if (t2 > t) continue; t2 > t t2 t continue; ans = Math.min(ans, c) ans Math.min(ans, c) Math.min Math ans c System.out.println((ans != 2000) ? ans : "TLE") System.out.println System.out System System.out (ans != 2000) ? ans : "TLE" (ans != 2000) ans 2000 ans "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 ans = 2000;
		
		for (int i = 0; i < n; i++) {
			int c = sc.nextInt();
			int t2 = sc.nextInt();
			if (t2 > t) continue;
			ans = Math.min(ans, c);
		}
		
		System.out.println((ans != 2000) ? ans : "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 ans = 2000;
		
		for (int i = 0; i < n; i++) {
			int c = sc.nextInt();
			int t2 = sc.nextInt();
			if (t2 > t) continue;
			ans = Math.min(ans, c);
		}
		
		System.out.println((ans != 2000) ? ans : "TLE");
		
	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int t = sc.nextInt();
		
		int ans = 2000;
		
		for (int i = 0; i < n; i++) {
			int c = sc.nextInt();
			int t2 = sc.nextInt();
			if (t2 > t) continue;
			ans = Math.min(ans, c);
		}
		
		System.out.println((ans != 2000) ? ans : "TLE");
		
	}

}
