import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
	Scanner scn = new Scanner(System.in);
	int n = scn.nextInt();
      int T = scn.nextInt();
      int y = 1000000;
      int[] a = new int[n*2];
      for(int i=0; i<a.length; ++i){
        a[i] = scn.nextInt();
      }
      for(int i=1; i<a.length; i+=2){
        if(T >= a[i]){
          if(y > a[(i-1)]){
          y = a[(i-1)];
          }
        }
      }
      if(y !=1000000){
        System.out.println(y);
      }else{
        System.out.println("TLE");
      }
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) throws Exception{
	Scanner scn = new Scanner(System.in);
	int n = scn.nextInt();
      int T = scn.nextInt();
      int y = 1000000;
      int[] a = new int[n*2];
      for(int i=0; i<a.length; ++i){
        a[i] = scn.nextInt();
      }
      for(int i=1; i<a.length; i+=2){
        if(T >= a[i]){
          if(y > a[(i-1)]){
          y = a[(i-1)];
          }
        }
      }
      if(y !=1000000){
        System.out.println(y);
      }else{
        System.out.println("TLE");
      }
	}
} Main public static void main(String[] args) throws Exception{
	Scanner scn = new Scanner(System.in);
	int n = scn.nextInt();
      int T = scn.nextInt();
      int y = 1000000;
      int[] a = new int[n*2];
      for(int i=0; i<a.length; ++i){
        a[i] = scn.nextInt();
      }
      for(int i=1; i<a.length; i+=2){
        if(T >= a[i]){
          if(y > a[(i-1)]){
          y = a[(i-1)];
          }
        }
      }
      if(y !=1000000){
        System.out.println(y);
      }else{
        System.out.println("TLE");
      }
	} main {
	Scanner scn = new Scanner(System.in);
	int n = scn.nextInt();
      int T = scn.nextInt();
      int y = 1000000;
      int[] a = new int[n*2];
      for(int i=0; i<a.length; ++i){
        a[i] = scn.nextInt();
      }
      for(int i=1; i<a.length; i+=2){
        if(T >= a[i]){
          if(y > a[(i-1)]){
          y = a[(i-1)];
          }
        }
      }
      if(y !=1000000){
        System.out.println(y);
      }else{
        System.out.println("TLE");
      }
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int n = scn.nextInt(); n scn.nextInt() scn.nextInt scn int T = scn.nextInt(); T scn.nextInt() scn.nextInt scn int y = 1000000; y 1000000 int[] a = new int[n*2]; a new int[n*2] n*2 n 2 for(int i=0; i<a.length; ++i){
        a[i] = scn.nextInt();
      } int i=0; int i=0; i 0 i<a.length i a.length a a.length ++i ++i i {
        a[i] = scn.nextInt();
      } {
        a[i] = scn.nextInt();
      } a[i] = scn.nextInt() a[i] a i scn.nextInt() scn.nextInt scn for(int i=1; i<a.length; i+=2){
        if(T >= a[i]){
          if(y > a[(i-1)]){
          y = a[(i-1)];
          }
        }
      } int i=1; int i=1; i 1 i<a.length i a.length a a.length i+=2 i+=2 i 2 {
        if(T >= a[i]){
          if(y > a[(i-1)]){
          y = a[(i-1)];
          }
        }
      } {
        if(T >= a[i]){
          if(y > a[(i-1)]){
          y = a[(i-1)];
          }
        }
      } if(T >= a[i]){
          if(y > a[(i-1)]){
          y = a[(i-1)];
          }
        } T >= a[i] T a[i] a i {
          if(y > a[(i-1)]){
          y = a[(i-1)];
          }
        } if(y > a[(i-1)]){
          y = a[(i-1)];
          } y > a[(i-1)] y a[(i-1)] a (i-1) i 1 {
          y = a[(i-1)];
          } y = a[(i-1)] y a[(i-1)] a (i-1) i 1 if(y !=1000000){
        System.out.println(y);
      }else{
        System.out.println("TLE");
      } y !=1000000 y 1000000 {
        System.out.println(y);
      } System.out.println(y) System.out.println System.out System System.out y {
        System.out.println("TLE");
      } System.out.println("TLE") System.out.println System.out System System.out "TLE" String[] args args public class Main {
	public static void main(String[] args) throws Exception{
	Scanner scn = new Scanner(System.in);
	int n = scn.nextInt();
      int T = scn.nextInt();
      int y = 1000000;
      int[] a = new int[n*2];
      for(int i=0; i<a.length; ++i){
        a[i] = scn.nextInt();
      }
      for(int i=1; i<a.length; i+=2){
        if(T >= a[i]){
          if(y > a[(i-1)]){
          y = a[(i-1)];
          }
        }
      }
      if(y !=1000000){
        System.out.println(y);
      }else{
        System.out.println("TLE");
      }
	}
} public class Main {
	public static void main(String[] args) throws Exception{
	Scanner scn = new Scanner(System.in);
	int n = scn.nextInt();
      int T = scn.nextInt();
      int y = 1000000;
      int[] a = new int[n*2];
      for(int i=0; i<a.length; ++i){
        a[i] = scn.nextInt();
      }
      for(int i=1; i<a.length; i+=2){
        if(T >= a[i]){
          if(y > a[(i-1)]){
          y = a[(i-1)];
          }
        }
      }
      if(y !=1000000){
        System.out.println(y);
      }else{
        System.out.println("TLE");
      }
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
	Scanner scn = new Scanner(System.in);
	int n = scn.nextInt();
      int T = scn.nextInt();
      int y = 1000000;
      int[] a = new int[n*2];
      for(int i=0; i<a.length; ++i){
        a[i] = scn.nextInt();
      }
      for(int i=1; i<a.length; i+=2){
        if(T >= a[i]){
          if(y > a[(i-1)]){
          y = a[(i-1)];
          }
        }
      }
      if(y !=1000000){
        System.out.println(y);
      }else{
        System.out.println("TLE");
      }
	}
}
