import java.util.*;
public class Main{
public static void main(String []args){
Scanner s=new Scanner(System.in);
  int n=s.nextInt();
  int m=s.nextInt();
  int ans=10000;
  for(int i=0;i<n;i++){
  	int k=s.nextInt();
    int b=s.nextInt();
    if(b<=m&&k<ans){
    	ans=k;
    }
  }
  if(ans==10000){System.out.println("TLE");}
  
  else System.out.println(ans);
}
} import java.util.*; util.* java public class Main{
public static void main(String []args){
Scanner s=new Scanner(System.in);
  int n=s.nextInt();
  int m=s.nextInt();
  int ans=10000;
  for(int i=0;i<n;i++){
  	int k=s.nextInt();
    int b=s.nextInt();
    if(b<=m&&k<ans){
    	ans=k;
    }
  }
  if(ans==10000){System.out.println("TLE");}
  
  else System.out.println(ans);
}
} Main public static void main(String []args){
Scanner s=new Scanner(System.in);
  int n=s.nextInt();
  int m=s.nextInt();
  int ans=10000;
  for(int i=0;i<n;i++){
  	int k=s.nextInt();
    int b=s.nextInt();
    if(b<=m&&k<ans){
    	ans=k;
    }
  }
  if(ans==10000){System.out.println("TLE");}
  
  else System.out.println(ans);
} main {
Scanner s=new Scanner(System.in);
  int n=s.nextInt();
  int m=s.nextInt();
  int ans=10000;
  for(int i=0;i<n;i++){
  	int k=s.nextInt();
    int b=s.nextInt();
    if(b<=m&&k<ans){
    	ans=k;
    }
  }
  if(ans==10000){System.out.println("TLE");}
  
  else System.out.println(ans);
} Scanner s=new Scanner(System.in); s new Scanner(System.in) int n=s.nextInt(); n s.nextInt() s.nextInt s int m=s.nextInt(); m s.nextInt() s.nextInt s int ans=10000; ans 10000 for(int i=0;i<n;i++){
  	int k=s.nextInt();
    int b=s.nextInt();
    if(b<=m&&k<ans){
    	ans=k;
    }
  } int i=0; int i=0; i 0 i<n i n i++ i++ i {
  	int k=s.nextInt();
    int b=s.nextInt();
    if(b<=m&&k<ans){
    	ans=k;
    }
  } {
  	int k=s.nextInt();
    int b=s.nextInt();
    if(b<=m&&k<ans){
    	ans=k;
    }
  } int k=s.nextInt(); k s.nextInt() s.nextInt s int b=s.nextInt(); b s.nextInt() s.nextInt s if(b<=m&&k<ans){
    	ans=k;
    } b<=m&&k<ans b<=m b m k<ans k ans {
    	ans=k;
    } ans=k ans k if(ans==10000){System.out.println("TLE");}
  
  else System.out.println(ans); ans==10000 ans 10000 {System.out.println("TLE");} System.out.println("TLE") System.out.println System.out System System.out "TLE" System.out.println(ans) System.out.println System.out System System.out ans String []args args public class Main{
public static void main(String []args){
Scanner s=new Scanner(System.in);
  int n=s.nextInt();
  int m=s.nextInt();
  int ans=10000;
  for(int i=0;i<n;i++){
  	int k=s.nextInt();
    int b=s.nextInt();
    if(b<=m&&k<ans){
    	ans=k;
    }
  }
  if(ans==10000){System.out.println("TLE");}
  
  else System.out.println(ans);
}
} public class Main{
public static void main(String []args){
Scanner s=new Scanner(System.in);
  int n=s.nextInt();
  int m=s.nextInt();
  int ans=10000;
  for(int i=0;i<n;i++){
  	int k=s.nextInt();
    int b=s.nextInt();
    if(b<=m&&k<ans){
    	ans=k;
    }
  }
  if(ans==10000){System.out.println("TLE");}
  
  else System.out.println(ans);
}
} Main
import java.util.*;
public class Main{
public static void main(String []args){
Scanner s=new Scanner(System.in);
  int n=s.nextInt();
  int m=s.nextInt();
  int ans=10000;
  for(int i=0;i<n;i++){
  	int k=s.nextInt();
    int b=s.nextInt();
    if(b<=m&&k<ans){
    	ans=k;
    }
  }
  if(ans==10000){System.out.println("TLE");}
  
  else System.out.println(ans);
}
}