import 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 c1;
    int t1;
    int cmin = 1024;
    for(int i=0; i<n; i++){
      c1 = sc.nextInt();
      t1 = sc.nextInt();
      if(t1 <= t){
        if(c1 < cmin)
          cmin = c1;
      }
    }
    if(cmin == 1024)
      System.out.println("TLE");
    else
      System.out.println(cmin);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int t = sc.nextInt();
    int c1;
    int t1;
    int cmin = 1024;
    for(int i=0; i<n; i++){
      c1 = sc.nextInt();
      t1 = sc.nextInt();
      if(t1 <= t){
        if(c1 < cmin)
          cmin = c1;
      }
    }
    if(cmin == 1024)
      System.out.println("TLE");
    else
      System.out.println(cmin);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int t = sc.nextInt();
    int c1;
    int t1;
    int cmin = 1024;
    for(int i=0; i<n; i++){
      c1 = sc.nextInt();
      t1 = sc.nextInt();
      if(t1 <= t){
        if(c1 < cmin)
          cmin = c1;
      }
    }
    if(cmin == 1024)
      System.out.println("TLE");
    else
      System.out.println(cmin);
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int t = sc.nextInt();
    int c1;
    int t1;
    int cmin = 1024;
    for(int i=0; i<n; i++){
      c1 = sc.nextInt();
      t1 = sc.nextInt();
      if(t1 <= t){
        if(c1 < cmin)
          cmin = c1;
      }
    }
    if(cmin == 1024)
      System.out.println("TLE");
    else
      System.out.println(cmin);
  } 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 c1; c1 int t1; t1 int cmin = 1024; cmin 1024 for(int i=0; i<n; i++){
      c1 = sc.nextInt();
      t1 = sc.nextInt();
      if(t1 <= t){
        if(c1 < cmin)
          cmin = c1;
      }
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      c1 = sc.nextInt();
      t1 = sc.nextInt();
      if(t1 <= t){
        if(c1 < cmin)
          cmin = c1;
      }
    } {
      c1 = sc.nextInt();
      t1 = sc.nextInt();
      if(t1 <= t){
        if(c1 < cmin)
          cmin = c1;
      }
    } c1 = sc.nextInt() c1 sc.nextInt() sc.nextInt sc t1 = sc.nextInt() t1 sc.nextInt() sc.nextInt sc if(t1 <= t){
        if(c1 < cmin)
          cmin = c1;
      } t1 <= t t1 t {
        if(c1 < cmin)
          cmin = c1;
      } if(c1 < cmin)
          cmin = c1; c1 < cmin c1 cmin cmin = c1 cmin c1 if(cmin == 1024)
      System.out.println("TLE");
    else
      System.out.println(cmin); cmin == 1024 cmin 1024 System.out.println("TLE") System.out.println System.out System System.out "TLE" System.out.println(cmin) System.out.println System.out System System.out cmin 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 c1;
    int t1;
    int cmin = 1024;
    for(int i=0; i<n; i++){
      c1 = sc.nextInt();
      t1 = sc.nextInt();
      if(t1 <= t){
        if(c1 < cmin)
          cmin = c1;
      }
    }
    if(cmin == 1024)
      System.out.println("TLE");
    else
      System.out.println(cmin);
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int t = sc.nextInt();
    int c1;
    int t1;
    int cmin = 1024;
    for(int i=0; i<n; i++){
      c1 = sc.nextInt();
      t1 = sc.nextInt();
      if(t1 <= t){
        if(c1 < cmin)
          cmin = c1;
      }
    }
    if(cmin == 1024)
      System.out.println("TLE");
    else
      System.out.println(cmin);
  }
} Main
import 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 c1;
    int t1;
    int cmin = 1024;
    for(int i=0; i<n; i++){
      c1 = sc.nextInt();
      t1 = sc.nextInt();
      if(t1 <= t){
        if(c1 < cmin)
          cmin = c1;
      }
    }
    if(cmin == 1024)
      System.out.println("TLE");
    else
      System.out.println(cmin);
  }
}
