import java.util.Scanner;
class Main{
 public static void main(String args[]){
Scanner sc=new Scanner(System.in);
int N= sc.nextInt();
int T= sc.nextInt();
int c[]=new int[N];
int t[]=new int[N];
for(int n=0;n<N;n++) {
c[n]=sc.nextInt();
t[n]=sc.nextInt();
 }
int cost=0;
boolean home=false;
for(int k=0;k<N;k++) {
	if(!home) {
	if(t[k]<=T) {
	cost=c[k];
	home=true;
	  }
	 }
 if(c[k]<cost) {
		if(t[k]<=T){
			cost=c[k];
		}
	}
}
System.out.println((home)?cost:"TLE");
 }
  } import java.util.Scanner; Scanner java.util class Main{
 public static void main(String args[]){
Scanner sc=new Scanner(System.in);
int N= sc.nextInt();
int T= sc.nextInt();
int c[]=new int[N];
int t[]=new int[N];
for(int n=0;n<N;n++) {
c[n]=sc.nextInt();
t[n]=sc.nextInt();
 }
int cost=0;
boolean home=false;
for(int k=0;k<N;k++) {
	if(!home) {
	if(t[k]<=T) {
	cost=c[k];
	home=true;
	  }
	 }
 if(c[k]<cost) {
		if(t[k]<=T){
			cost=c[k];
		}
	}
}
System.out.println((home)?cost:"TLE");
 }
  } Main public static void main(String args[]){
Scanner sc=new Scanner(System.in);
int N= sc.nextInt();
int T= sc.nextInt();
int c[]=new int[N];
int t[]=new int[N];
for(int n=0;n<N;n++) {
c[n]=sc.nextInt();
t[n]=sc.nextInt();
 }
int cost=0;
boolean home=false;
for(int k=0;k<N;k++) {
	if(!home) {
	if(t[k]<=T) {
	cost=c[k];
	home=true;
	  }
	 }
 if(c[k]<cost) {
		if(t[k]<=T){
			cost=c[k];
		}
	}
}
System.out.println((home)?cost:"TLE");
 } main {
Scanner sc=new Scanner(System.in);
int N= sc.nextInt();
int T= sc.nextInt();
int c[]=new int[N];
int t[]=new int[N];
for(int n=0;n<N;n++) {
c[n]=sc.nextInt();
t[n]=sc.nextInt();
 }
int cost=0;
boolean home=false;
for(int k=0;k<N;k++) {
	if(!home) {
	if(t[k]<=T) {
	cost=c[k];
	home=true;
	  }
	 }
 if(c[k]<cost) {
		if(t[k]<=T){
			cost=c[k];
		}
	}
}
System.out.println((home)?cost:"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[]=new int[N]; c new int[N] N int t[]=new int[N]; t new int[N] N for(int n=0;n<N;n++) {
c[n]=sc.nextInt();
t[n]=sc.nextInt();
 } int n=0; int n=0; n 0 n<N n N n++ n++ n {
c[n]=sc.nextInt();
t[n]=sc.nextInt();
 } {
c[n]=sc.nextInt();
t[n]=sc.nextInt();
 } c[n]=sc.nextInt() c[n] c n sc.nextInt() sc.nextInt sc t[n]=sc.nextInt() t[n] t n sc.nextInt() sc.nextInt sc int cost=0; cost 0 boolean home=false; home false for(int k=0;k<N;k++) {
	if(!home) {
	if(t[k]<=T) {
	cost=c[k];
	home=true;
	  }
	 }
 if(c[k]<cost) {
		if(t[k]<=T){
			cost=c[k];
		}
	}
} int k=0; int k=0; k 0 k<N k N k++ k++ k {
	if(!home) {
	if(t[k]<=T) {
	cost=c[k];
	home=true;
	  }
	 }
 if(c[k]<cost) {
		if(t[k]<=T){
			cost=c[k];
		}
	}
} {
	if(!home) {
	if(t[k]<=T) {
	cost=c[k];
	home=true;
	  }
	 }
 if(c[k]<cost) {
		if(t[k]<=T){
			cost=c[k];
		}
	}
} if(!home) {
	if(t[k]<=T) {
	cost=c[k];
	home=true;
	  }
	 } !home home {
	if(t[k]<=T) {
	cost=c[k];
	home=true;
	  }
	 } if(t[k]<=T) {
	cost=c[k];
	home=true;
	  } t[k]<=T t[k] t k T {
	cost=c[k];
	home=true;
	  } cost=c[k] cost c[k] c k home=true home true if(c[k]<cost) {
		if(t[k]<=T){
			cost=c[k];
		}
	} c[k]<cost c[k] c k cost {
		if(t[k]<=T){
			cost=c[k];
		}
	} if(t[k]<=T){
			cost=c[k];
		} t[k]<=T t[k] t k T {
			cost=c[k];
		} cost=c[k] cost c[k] c k System.out.println((home)?cost:"TLE") System.out.println System.out System System.out (home)?cost:"TLE" (home) cost "TLE" String args[] args
import java.util.Scanner;
class Main{
 public static void main(String args[]){
Scanner sc=new Scanner(System.in);
int N= sc.nextInt();
int T= sc.nextInt();
int c[]=new int[N];
int t[]=new int[N];
for(int n=0;n<N;n++) {
c[n]=sc.nextInt();
t[n]=sc.nextInt();
 }
int cost=0;
boolean home=false;
for(int k=0;k<N;k++) {
	if(!home) {
	if(t[k]<=T) {
	cost=c[k];
	home=true;
	  }
	 }
 if(c[k]<cost) {
		if(t[k]<=T){
			cost=c[k];
		}
	}
}
System.out.println((home)?cost:"TLE");
 }
  }