import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int n = Integer.parseInt(str[0]);
    int t = Integer.parseInt(str[1]);
    int[] c = new int[n];
    int[] t_s = new int[n];
    int min = 10000;
    boolean flg = false;
    for(int i=0; i<n; i++) {
      str = in.readLine().split(" ");
      c[i] = Integer.parseInt(str[0]);
      t_s[i] = Integer.parseInt(str[1]);
    }
    for(int i=0; i<n; i++) {
      if(t_s[i]<=t){
        min = Math.min(min,c[i]);
        flg = true;
      }
    }
    System.out.println(flg==true?min:"TLE");
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int n = Integer.parseInt(str[0]);
    int t = Integer.parseInt(str[1]);
    int[] c = new int[n];
    int[] t_s = new int[n];
    int min = 10000;
    boolean flg = false;
    for(int i=0; i<n; i++) {
      str = in.readLine().split(" ");
      c[i] = Integer.parseInt(str[0]);
      t_s[i] = Integer.parseInt(str[1]);
    }
    for(int i=0; i<n; i++) {
      if(t_s[i]<=t){
        min = Math.min(min,c[i]);
        flg = true;
      }
    }
    System.out.println(flg==true?min:"TLE");
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int n = Integer.parseInt(str[0]);
    int t = Integer.parseInt(str[1]);
    int[] c = new int[n];
    int[] t_s = new int[n];
    int min = 10000;
    boolean flg = false;
    for(int i=0; i<n; i++) {
      str = in.readLine().split(" ");
      c[i] = Integer.parseInt(str[0]);
      t_s[i] = Integer.parseInt(str[1]);
    }
    for(int i=0; i<n; i++) {
      if(t_s[i]<=t){
        min = Math.min(min,c[i]);
        flg = true;
      }
    }
    System.out.println(flg==true?min:"TLE");
  } main {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int n = Integer.parseInt(str[0]);
    int t = Integer.parseInt(str[1]);
    int[] c = new int[n];
    int[] t_s = new int[n];
    int min = 10000;
    boolean flg = false;
    for(int i=0; i<n; i++) {
      str = in.readLine().split(" ");
      c[i] = Integer.parseInt(str[0]);
      t_s[i] = Integer.parseInt(str[1]);
    }
    for(int i=0; i<n; i++) {
      if(t_s[i]<=t){
        min = Math.min(min,c[i]);
        flg = true;
      }
    }
    System.out.println(flg==true?min:"TLE");
  } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String[] str = in.readLine().split(" "); str in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int n = Integer.parseInt(str[0]); n Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int t = Integer.parseInt(str[1]); t Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 int[] c = new int[n]; c new int[n] n int[] t_s = new int[n]; t_s new int[n] n int min = 10000; min 10000 boolean flg = false; flg false for(int i=0; i<n; i++) {
      str = in.readLine().split(" ");
      c[i] = Integer.parseInt(str[0]);
      t_s[i] = Integer.parseInt(str[1]);
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      str = in.readLine().split(" ");
      c[i] = Integer.parseInt(str[0]);
      t_s[i] = Integer.parseInt(str[1]);
    } {
      str = in.readLine().split(" ");
      c[i] = Integer.parseInt(str[0]);
      t_s[i] = Integer.parseInt(str[1]);
    } str = in.readLine().split(" ") str in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " c[i] = Integer.parseInt(str[0]) c[i] c i Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 t_s[i] = Integer.parseInt(str[1]) t_s[i] t_s i Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 for(int i=0; i<n; i++) {
      if(t_s[i]<=t){
        min = Math.min(min,c[i]);
        flg = true;
      }
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      if(t_s[i]<=t){
        min = Math.min(min,c[i]);
        flg = true;
      }
    } {
      if(t_s[i]<=t){
        min = Math.min(min,c[i]);
        flg = true;
      }
    } if(t_s[i]<=t){
        min = Math.min(min,c[i]);
        flg = true;
      } t_s[i]<=t t_s[i] t_s i t {
        min = Math.min(min,c[i]);
        flg = true;
      } min = Math.min(min,c[i]) min Math.min(min,c[i]) Math.min Math min c[i] c i flg = true flg true System.out.println(flg==true?min:"TLE") System.out.println System.out System System.out flg==true?min:"TLE" flg==true flg true min "TLE" String[] args args public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int n = Integer.parseInt(str[0]);
    int t = Integer.parseInt(str[1]);
    int[] c = new int[n];
    int[] t_s = new int[n];
    int min = 10000;
    boolean flg = false;
    for(int i=0; i<n; i++) {
      str = in.readLine().split(" ");
      c[i] = Integer.parseInt(str[0]);
      t_s[i] = Integer.parseInt(str[1]);
    }
    for(int i=0; i<n; i++) {
      if(t_s[i]<=t){
        min = Math.min(min,c[i]);
        flg = true;
      }
    }
    System.out.println(flg==true?min:"TLE");
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int n = Integer.parseInt(str[0]);
    int t = Integer.parseInt(str[1]);
    int[] c = new int[n];
    int[] t_s = new int[n];
    int min = 10000;
    boolean flg = false;
    for(int i=0; i<n; i++) {
      str = in.readLine().split(" ");
      c[i] = Integer.parseInt(str[0]);
      t_s[i] = Integer.parseInt(str[1]);
    }
    for(int i=0; i<n; i++) {
      if(t_s[i]<=t){
        min = Math.min(min,c[i]);
        flg = true;
      }
    }
    System.out.println(flg==true?min:"TLE");
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int n = Integer.parseInt(str[0]);
    int t = Integer.parseInt(str[1]);
    int[] c = new int[n];
    int[] t_s = new int[n];
    int min = 10000;
    boolean flg = false;
    for(int i=0; i<n; i++) {
      str = in.readLine().split(" ");
      c[i] = Integer.parseInt(str[0]);
      t_s[i] = Integer.parseInt(str[1]);
    }
    for(int i=0; i<n; i++) {
      if(t_s[i]<=t){
        min = Math.min(min,c[i]);
        flg = true;
      }
    }
    System.out.println(flg==true?min:"TLE");
  }
}