import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
    Scanner sc = new Scanner(System.in);
     int i = sc.nextInt();
     int j = sc.nextInt();
int c = 1000;
int count =0;
        for(int k =0;k<i;k++){

     int x = sc.nextInt();
     int  y = sc.nextInt();
     if(j >= y){
     
     
     if(c > x){

        c =x;
      } 
     
count = 1;

      }
}
if(count == 1){
   System.out.println(c);
    }

if(count == 0){
   System.out.println("TLE");
    }
}

} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
    Scanner sc = new Scanner(System.in);
     int i = sc.nextInt();
     int j = sc.nextInt();
int c = 1000;
int count =0;
        for(int k =0;k<i;k++){

     int x = sc.nextInt();
     int  y = sc.nextInt();
     if(j >= y){
     
     
     if(c > x){

        c =x;
      } 
     
count = 1;

      }
}
if(count == 1){
   System.out.println(c);
    }

if(count == 0){
   System.out.println("TLE");
    }
}

} Main public static void main(String[] args) throws Exception {
    Scanner sc = new Scanner(System.in);
     int i = sc.nextInt();
     int j = sc.nextInt();
int c = 1000;
int count =0;
        for(int k =0;k<i;k++){

     int x = sc.nextInt();
     int  y = sc.nextInt();
     if(j >= y){
     
     
     if(c > x){

        c =x;
      } 
     
count = 1;

      }
}
if(count == 1){
   System.out.println(c);
    }

if(count == 0){
   System.out.println("TLE");
    }
} main {
    Scanner sc = new Scanner(System.in);
     int i = sc.nextInt();
     int j = sc.nextInt();
int c = 1000;
int count =0;
        for(int k =0;k<i;k++){

     int x = sc.nextInt();
     int  y = sc.nextInt();
     if(j >= y){
     
     
     if(c > x){

        c =x;
      } 
     
count = 1;

      }
}
if(count == 1){
   System.out.println(c);
    }

if(count == 0){
   System.out.println("TLE");
    }
} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int i = sc.nextInt(); i sc.nextInt() sc.nextInt sc int j = sc.nextInt(); j sc.nextInt() sc.nextInt sc int c = 1000; c 1000 int count =0; count 0 for(int k =0;k<i;k++){

     int x = sc.nextInt();
     int  y = sc.nextInt();
     if(j >= y){
     
     
     if(c > x){

        c =x;
      } 
     
count = 1;

      }
} int k =0; int k =0; k 0 k<i k i k++ k++ k {

     int x = sc.nextInt();
     int  y = sc.nextInt();
     if(j >= y){
     
     
     if(c > x){

        c =x;
      } 
     
count = 1;

      }
} {

     int x = sc.nextInt();
     int  y = sc.nextInt();
     if(j >= y){
     
     
     if(c > x){

        c =x;
      } 
     
count = 1;

      }
} int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int  y = sc.nextInt(); y sc.nextInt() sc.nextInt sc if(j >= y){
     
     
     if(c > x){

        c =x;
      } 
     
count = 1;

      } j >= y j y {
     
     
     if(c > x){

        c =x;
      } 
     
count = 1;

      } if(c > x){

        c =x;
      } c > x c x {

        c =x;
      } c =x c x count = 1 count 1 if(count == 1){
   System.out.println(c);
    } count == 1 count 1 {
   System.out.println(c);
    } System.out.println(c) System.out.println System.out System System.out c if(count == 0){
   System.out.println("TLE");
    } count == 0 count 0 {
   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 sc = new Scanner(System.in);
     int i = sc.nextInt();
     int j = sc.nextInt();
int c = 1000;
int count =0;
        for(int k =0;k<i;k++){

     int x = sc.nextInt();
     int  y = sc.nextInt();
     if(j >= y){
     
     
     if(c > x){

        c =x;
      } 
     
count = 1;

      }
}
if(count == 1){
   System.out.println(c);
    }

if(count == 0){
   System.out.println("TLE");
    }
}

} public class Main {
    public static void main(String[] args) throws Exception {
    Scanner sc = new Scanner(System.in);
     int i = sc.nextInt();
     int j = sc.nextInt();
int c = 1000;
int count =0;
        for(int k =0;k<i;k++){

     int x = sc.nextInt();
     int  y = sc.nextInt();
     if(j >= y){
     
     
     if(c > x){

        c =x;
      } 
     
count = 1;

      }
}
if(count == 1){
   System.out.println(c);
    }

if(count == 0){
   System.out.println("TLE");
    }
}

} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
    Scanner sc = new Scanner(System.in);
     int i = sc.nextInt();
     int j = sc.nextInt();
int c = 1000;
int count =0;
        for(int k =0;k<i;k++){

     int x = sc.nextInt();
     int  y = sc.nextInt();
     if(j >= y){
     
     
     if(c > x){

        c =x;
      } 
     
count = 1;

      }
}
if(count == 1){
   System.out.println(c);
    }

if(count == 0){
   System.out.println("TLE");
    }
}

}
