import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int c[][] = new int[a][2];
		
		for (int i=0; i<a; i++){
			c[i][0] = sc.nextInt();
			c[i][1] = sc.nextInt();
		}
		
		boolean flg = false;
		int cost = 0;
		for (int i=0; i<a; i++){
			
			if (c[i][1] <= b){
				if ((cost == 0) || (c[i][0] <= cost)){
					cost = c[i][0];
					flg = true;
				}
			}
		}
		
		if (flg){
			System.out.println(cost);
		}
		else {
			System.out.println("TLE");
		}
		return;
		
		
	}
	
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int c[][] = new int[a][2];
		
		for (int i=0; i<a; i++){
			c[i][0] = sc.nextInt();
			c[i][1] = sc.nextInt();
		}
		
		boolean flg = false;
		int cost = 0;
		for (int i=0; i<a; i++){
			
			if (c[i][1] <= b){
				if ((cost == 0) || (c[i][0] <= cost)){
					cost = c[i][0];
					flg = true;
				}
			}
		}
		
		if (flg){
			System.out.println(cost);
		}
		else {
			System.out.println("TLE");
		}
		return;
		
		
	}
	
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int c[][] = new int[a][2];
		
		for (int i=0; i<a; i++){
			c[i][0] = sc.nextInt();
			c[i][1] = sc.nextInt();
		}
		
		boolean flg = false;
		int cost = 0;
		for (int i=0; i<a; i++){
			
			if (c[i][1] <= b){
				if ((cost == 0) || (c[i][0] <= cost)){
					cost = c[i][0];
					flg = true;
				}
			}
		}
		
		if (flg){
			System.out.println(cost);
		}
		else {
			System.out.println("TLE");
		}
		return;
		
		
	} main {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int c[][] = new int[a][2];
		
		for (int i=0; i<a; i++){
			c[i][0] = sc.nextInt();
			c[i][1] = sc.nextInt();
		}
		
		boolean flg = false;
		int cost = 0;
		for (int i=0; i<a; i++){
			
			if (c[i][1] <= b){
				if ((cost == 0) || (c[i][0] <= cost)){
					cost = c[i][0];
					flg = true;
				}
			}
		}
		
		if (flg){
			System.out.println(cost);
		}
		else {
			System.out.println("TLE");
		}
		return;
		
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c[][] = new int[a][2]; c new int[a][2] a 2 for (int i=0; i<a; i++){
			c[i][0] = sc.nextInt();
			c[i][1] = sc.nextInt();
		} int i=0; int i=0; i 0 i<a i a i++ i++ i {
			c[i][0] = sc.nextInt();
			c[i][1] = sc.nextInt();
		} {
			c[i][0] = sc.nextInt();
			c[i][1] = sc.nextInt();
		} c[i][0] = sc.nextInt() c[i][0] c[i] c i 0 sc.nextInt() sc.nextInt sc c[i][1] = sc.nextInt() c[i][1] c[i] c i 1 sc.nextInt() sc.nextInt sc boolean flg = false; flg false int cost = 0; cost 0 for (int i=0; i<a; i++){
			
			if (c[i][1] <= b){
				if ((cost == 0) || (c[i][0] <= cost)){
					cost = c[i][0];
					flg = true;
				}
			}
		} int i=0; int i=0; i 0 i<a i a i++ i++ i {
			
			if (c[i][1] <= b){
				if ((cost == 0) || (c[i][0] <= cost)){
					cost = c[i][0];
					flg = true;
				}
			}
		} {
			
			if (c[i][1] <= b){
				if ((cost == 0) || (c[i][0] <= cost)){
					cost = c[i][0];
					flg = true;
				}
			}
		} if (c[i][1] <= b){
				if ((cost == 0) || (c[i][0] <= cost)){
					cost = c[i][0];
					flg = true;
				}
			} c[i][1] <= b c[i][1] c[i] c i 1 b {
				if ((cost == 0) || (c[i][0] <= cost)){
					cost = c[i][0];
					flg = true;
				}
			} if ((cost == 0) || (c[i][0] <= cost)){
					cost = c[i][0];
					flg = true;
				} (cost == 0) || (c[i][0] <= cost) (cost == 0) cost 0 (c[i][0] <= cost) c[i][0] c[i] c i 0 cost {
					cost = c[i][0];
					flg = true;
				} cost = c[i][0] cost c[i][0] c[i] c i 0 flg = true flg true if (flg){
			System.out.println(cost);
		}
		else {
			System.out.println("TLE");
		} flg {
			System.out.println(cost);
		} System.out.println(cost) System.out.println System.out System System.out cost {
			System.out.println("TLE");
		} System.out.println("TLE") System.out.println System.out System System.out "TLE" return; String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int c[][] = new int[a][2];
		
		for (int i=0; i<a; i++){
			c[i][0] = sc.nextInt();
			c[i][1] = sc.nextInt();
		}
		
		boolean flg = false;
		int cost = 0;
		for (int i=0; i<a; i++){
			
			if (c[i][1] <= b){
				if ((cost == 0) || (c[i][0] <= cost)){
					cost = c[i][0];
					flg = true;
				}
			}
		}
		
		if (flg){
			System.out.println(cost);
		}
		else {
			System.out.println("TLE");
		}
		return;
		
		
	}
	
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int c[][] = new int[a][2];
		
		for (int i=0; i<a; i++){
			c[i][0] = sc.nextInt();
			c[i][1] = sc.nextInt();
		}
		
		boolean flg = false;
		int cost = 0;
		for (int i=0; i<a; i++){
			
			if (c[i][1] <= b){
				if ((cost == 0) || (c[i][0] <= cost)){
					cost = c[i][0];
					flg = true;
				}
			}
		}
		
		if (flg){
			System.out.println(cost);
		}
		else {
			System.out.println("TLE");
		}
		return;
		
		
	}
	
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int c[][] = new int[a][2];
		
		for (int i=0; i<a; i++){
			c[i][0] = sc.nextInt();
			c[i][1] = sc.nextInt();
		}
		
		boolean flg = false;
		int cost = 0;
		for (int i=0; i<a; i++){
			
			if (c[i][1] <= b){
				if ((cost == 0) || (c[i][0] <= cost)){
					cost = c[i][0];
					flg = true;
				}
			}
		}
		
		if (flg){
			System.out.println(cost);
		}
		else {
			System.out.println("TLE");
		}
		return;
		
		
	}
	
}
