import java.util.*;

public class Main {

  public static void main (String[] args) {
    Scanner stdIn = new Scanner(System.in);

    int n = stdIn.nextInt();
    int t = stdIn.nextInt();
    int c, t_1;
    int count = 0;
    int min = 2147483647;

    for(int i = 0; i < n; i++){
      c = stdIn.nextInt();
      t_1 = stdIn.nextInt();

      if (t_1 <= t){
        count++;
        if(c < min) {
          min = c;
        }
      } else {
        continue;
      }

    }

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


  }
} import java.util.*; util.* java public class Main {

  public static void main (String[] args) {
    Scanner stdIn = new Scanner(System.in);

    int n = stdIn.nextInt();
    int t = stdIn.nextInt();
    int c, t_1;
    int count = 0;
    int min = 2147483647;

    for(int i = 0; i < n; i++){
      c = stdIn.nextInt();
      t_1 = stdIn.nextInt();

      if (t_1 <= t){
        count++;
        if(c < min) {
          min = c;
        }
      } else {
        continue;
      }

    }

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


  }
} Main public static void main (String[] args) {
    Scanner stdIn = new Scanner(System.in);

    int n = stdIn.nextInt();
    int t = stdIn.nextInt();
    int c, t_1;
    int count = 0;
    int min = 2147483647;

    for(int i = 0; i < n; i++){
      c = stdIn.nextInt();
      t_1 = stdIn.nextInt();

      if (t_1 <= t){
        count++;
        if(c < min) {
          min = c;
        }
      } else {
        continue;
      }

    }

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


  } main {
    Scanner stdIn = new Scanner(System.in);

    int n = stdIn.nextInt();
    int t = stdIn.nextInt();
    int c, t_1;
    int count = 0;
    int min = 2147483647;

    for(int i = 0; i < n; i++){
      c = stdIn.nextInt();
      t_1 = stdIn.nextInt();

      if (t_1 <= t){
        count++;
        if(c < min) {
          min = c;
        }
      } else {
        continue;
      }

    }

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


  } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int n = stdIn.nextInt(); n stdIn.nextInt() stdIn.nextInt stdIn int t = stdIn.nextInt(); t stdIn.nextInt() stdIn.nextInt stdIn int c c t_1; t_1 int count = 0; count 0 int min = 2147483647; min 2147483647 for(int i = 0; i < n; i++){
      c = stdIn.nextInt();
      t_1 = stdIn.nextInt();

      if (t_1 <= t){
        count++;
        if(c < min) {
          min = c;
        }
      } else {
        continue;
      }

    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      c = stdIn.nextInt();
      t_1 = stdIn.nextInt();

      if (t_1 <= t){
        count++;
        if(c < min) {
          min = c;
        }
      } else {
        continue;
      }

    } {
      c = stdIn.nextInt();
      t_1 = stdIn.nextInt();

      if (t_1 <= t){
        count++;
        if(c < min) {
          min = c;
        }
      } else {
        continue;
      }

    } c = stdIn.nextInt() c stdIn.nextInt() stdIn.nextInt stdIn t_1 = stdIn.nextInt() t_1 stdIn.nextInt() stdIn.nextInt stdIn if (t_1 <= t){
        count++;
        if(c < min) {
          min = c;
        }
      } else {
        continue;
      } t_1 <= t t_1 t {
        count++;
        if(c < min) {
          min = c;
        }
      } count++ count if(c < min) {
          min = c;
        } c < min c min {
          min = c;
        } min = c min c {
        continue;
      } continue; if (count == 0) {
      System.out.println("TLE");
    } else {
      System.out.println(min);
    } count == 0 count 0 {
      System.out.println("TLE");
    } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
      System.out.println(min);
    } System.out.println(min) System.out.println System.out System System.out min String[] args args public class Main {

  public static void main (String[] args) {
    Scanner stdIn = new Scanner(System.in);

    int n = stdIn.nextInt();
    int t = stdIn.nextInt();
    int c, t_1;
    int count = 0;
    int min = 2147483647;

    for(int i = 0; i < n; i++){
      c = stdIn.nextInt();
      t_1 = stdIn.nextInt();

      if (t_1 <= t){
        count++;
        if(c < min) {
          min = c;
        }
      } else {
        continue;
      }

    }

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


  }
} public class Main {

  public static void main (String[] args) {
    Scanner stdIn = new Scanner(System.in);

    int n = stdIn.nextInt();
    int t = stdIn.nextInt();
    int c, t_1;
    int count = 0;
    int min = 2147483647;

    for(int i = 0; i < n; i++){
      c = stdIn.nextInt();
      t_1 = stdIn.nextInt();

      if (t_1 <= t){
        count++;
        if(c < min) {
          min = c;
        }
      } else {
        continue;
      }

    }

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


  }
} Main
import java.util.*;

public class Main {

  public static void main (String[] args) {
    Scanner stdIn = new Scanner(System.in);

    int n = stdIn.nextInt();
    int t = stdIn.nextInt();
    int c, t_1;
    int count = 0;
    int min = 2147483647;

    for(int i = 0; i < n; i++){
      c = stdIn.nextInt();
      t_1 = stdIn.nextInt();

      if (t_1 <= t){
        count++;
        if(c < min) {
          min = c;
        }
      } else {
        continue;
      }

    }

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


  }
}