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 c=0;
	int t=0;
	int minC=1000;
	boolean cre = false;
	for(int i=0;i<N;i++){
	    c=sc.nextInt();
	    t=sc.nextInt();
	    if(t <= T){
		if(c<minC)
		    minC=c;
		cre=true;
	    }
	}
	if(cre)System.out.print(minC);
	else System.out.print("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 c=0;
	int t=0;
	int minC=1000;
	boolean cre = false;
	for(int i=0;i<N;i++){
	    c=sc.nextInt();
	    t=sc.nextInt();
	    if(t <= T){
		if(c<minC)
		    minC=c;
		cre=true;
	    }
	}
	if(cre)System.out.print(minC);
	else System.out.print("TLE");
    }
} Main public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
	int T = sc.nextInt();
	int c=0;
	int t=0;
	int minC=1000;
	boolean cre = false;
	for(int i=0;i<N;i++){
	    c=sc.nextInt();
	    t=sc.nextInt();
	    if(t <= T){
		if(c<minC)
		    minC=c;
		cre=true;
	    }
	}
	if(cre)System.out.print(minC);
	else System.out.print("TLE");
    } main {
	Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
	int T = sc.nextInt();
	int c=0;
	int t=0;
	int minC=1000;
	boolean cre = false;
	for(int i=0;i<N;i++){
	    c=sc.nextInt();
	    t=sc.nextInt();
	    if(t <= T){
		if(c<minC)
		    minC=c;
		cre=true;
	    }
	}
	if(cre)System.out.print(minC);
	else System.out.print("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 c=0; c 0 int t=0; t 0 int minC=1000; minC 1000 boolean cre = false; cre false for(int i=0;i<N;i++){
	    c=sc.nextInt();
	    t=sc.nextInt();
	    if(t <= T){
		if(c<minC)
		    minC=c;
		cre=true;
	    }
	} int i=0; int i=0; i 0 i<N i N i++ i++ i {
	    c=sc.nextInt();
	    t=sc.nextInt();
	    if(t <= T){
		if(c<minC)
		    minC=c;
		cre=true;
	    }
	} {
	    c=sc.nextInt();
	    t=sc.nextInt();
	    if(t <= T){
		if(c<minC)
		    minC=c;
		cre=true;
	    }
	} c=sc.nextInt() c sc.nextInt() sc.nextInt sc t=sc.nextInt() t sc.nextInt() sc.nextInt sc if(t <= T){
		if(c<minC)
		    minC=c;
		cre=true;
	    } t <= T t T {
		if(c<minC)
		    minC=c;
		cre=true;
	    } if(c<minC)
		    minC=c; c<minC c minC minC=c minC c cre=true cre true if(cre)System.out.print(minC);
	else System.out.print("TLE"); cre System.out.print(minC) System.out.print System.out System System.out minC System.out.print("TLE") System.out.print System.out System System.out "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 c=0;
	int t=0;
	int minC=1000;
	boolean cre = false;
	for(int i=0;i<N;i++){
	    c=sc.nextInt();
	    t=sc.nextInt();
	    if(t <= T){
		if(c<minC)
		    minC=c;
		cre=true;
	    }
	}
	if(cre)System.out.print(minC);
	else System.out.print("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 c=0;
	int t=0;
	int minC=1000;
	boolean cre = false;
	for(int i=0;i<N;i++){
	    c=sc.nextInt();
	    t=sc.nextInt();
	    if(t <= T){
		if(c<minC)
		    minC=c;
		cre=true;
	    }
	}
	if(cre)System.out.print(minC);
	else System.out.print("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 c=0;
	int t=0;
	int minC=1000;
	boolean cre = false;
	for(int i=0;i<N;i++){
	    c=sc.nextInt();
	    t=sc.nextInt();
	    if(t <= T){
		if(c<minC)
		    minC=c;
		cre=true;
	    }
	}
	if(cre)System.out.print(minC);
	else System.out.print("TLE");
    }
}
