import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int keirosu = sc.nextInt();
    int limit = sc.nextInt();
    int[] cost = new int[keirosu];
    int[] time = new int[keirosu];
    for (int i = 0; i < keirosu; i++) {
      cost[i] = sc.nextInt();
      time[i] = sc.nextInt();
    }
    int min = Integer.MAX_VALUE;
    boolean tle = false;
    for (int i = 0; i < keirosu; i++) {
      if (time[i] <= limit && cost[i] < min) {
        min = cost[i];
        tle = true;
      }
    }
    System.out.println(tle ? min : "TLE");
  }

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

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int keirosu = sc.nextInt();
    int limit = sc.nextInt();
    int[] cost = new int[keirosu];
    int[] time = new int[keirosu];
    for (int i = 0; i < keirosu; i++) {
      cost[i] = sc.nextInt();
      time[i] = sc.nextInt();
    }
    int min = Integer.MAX_VALUE;
    boolean tle = false;
    for (int i = 0; i < keirosu; i++) {
      if (time[i] <= limit && cost[i] < min) {
        min = cost[i];
        tle = true;
      }
    }
    System.out.println(tle ? min : "TLE");
  }

} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int keirosu = sc.nextInt();
    int limit = sc.nextInt();
    int[] cost = new int[keirosu];
    int[] time = new int[keirosu];
    for (int i = 0; i < keirosu; i++) {
      cost[i] = sc.nextInt();
      time[i] = sc.nextInt();
    }
    int min = Integer.MAX_VALUE;
    boolean tle = false;
    for (int i = 0; i < keirosu; i++) {
      if (time[i] <= limit && cost[i] < min) {
        min = cost[i];
        tle = true;
      }
    }
    System.out.println(tle ? min : "TLE");
  } main {
    Scanner sc = new Scanner(System.in);
    int keirosu = sc.nextInt();
    int limit = sc.nextInt();
    int[] cost = new int[keirosu];
    int[] time = new int[keirosu];
    for (int i = 0; i < keirosu; i++) {
      cost[i] = sc.nextInt();
      time[i] = sc.nextInt();
    }
    int min = Integer.MAX_VALUE;
    boolean tle = false;
    for (int i = 0; i < keirosu; i++) {
      if (time[i] <= limit && cost[i] < min) {
        min = cost[i];
        tle = true;
      }
    }
    System.out.println(tle ? min : "TLE");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int keirosu = sc.nextInt(); keirosu sc.nextInt() sc.nextInt sc int limit = sc.nextInt(); limit sc.nextInt() sc.nextInt sc int[] cost = new int[keirosu]; cost new int[keirosu] keirosu int[] time = new int[keirosu]; time new int[keirosu] keirosu for (int i = 0; i < keirosu; i++) {
      cost[i] = sc.nextInt();
      time[i] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i < keirosu i keirosu i++ i++ i {
      cost[i] = sc.nextInt();
      time[i] = sc.nextInt();
    } {
      cost[i] = sc.nextInt();
      time[i] = sc.nextInt();
    } cost[i] = sc.nextInt() cost[i] cost i sc.nextInt() sc.nextInt sc time[i] = sc.nextInt() time[i] time i sc.nextInt() sc.nextInt sc int min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE boolean tle = false; tle false for (int i = 0; i < keirosu; i++) {
      if (time[i] <= limit && cost[i] < min) {
        min = cost[i];
        tle = true;
      }
    } int i = 0; int i = 0; i 0 i < keirosu i keirosu i++ i++ i {
      if (time[i] <= limit && cost[i] < min) {
        min = cost[i];
        tle = true;
      }
    } {
      if (time[i] <= limit && cost[i] < min) {
        min = cost[i];
        tle = true;
      }
    } if (time[i] <= limit && cost[i] < min) {
        min = cost[i];
        tle = true;
      } time[i] <= limit && cost[i] < min time[i] <= limit time[i] time i limit cost[i] < min cost[i] cost i min {
        min = cost[i];
        tle = true;
      } min = cost[i] min cost[i] cost i tle = true tle true System.out.println(tle ? min : "TLE") System.out.println System.out System System.out tle ? min : "TLE" tle min "TLE" String[] args args public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int keirosu = sc.nextInt();
    int limit = sc.nextInt();
    int[] cost = new int[keirosu];
    int[] time = new int[keirosu];
    for (int i = 0; i < keirosu; i++) {
      cost[i] = sc.nextInt();
      time[i] = sc.nextInt();
    }
    int min = Integer.MAX_VALUE;
    boolean tle = false;
    for (int i = 0; i < keirosu; i++) {
      if (time[i] <= limit && cost[i] < min) {
        min = cost[i];
        tle = true;
      }
    }
    System.out.println(tle ? min : "TLE");
  }

} public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int keirosu = sc.nextInt();
    int limit = sc.nextInt();
    int[] cost = new int[keirosu];
    int[] time = new int[keirosu];
    for (int i = 0; i < keirosu; i++) {
      cost[i] = sc.nextInt();
      time[i] = sc.nextInt();
    }
    int min = Integer.MAX_VALUE;
    boolean tle = false;
    for (int i = 0; i < keirosu; i++) {
      if (time[i] <= limit && cost[i] < min) {
        min = cost[i];
        tle = true;
      }
    }
    System.out.println(tle ? min : "TLE");
  }

} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int keirosu = sc.nextInt();
    int limit = sc.nextInt();
    int[] cost = new int[keirosu];
    int[] time = new int[keirosu];
    for (int i = 0; i < keirosu; i++) {
      cost[i] = sc.nextInt();
      time[i] = sc.nextInt();
    }
    int min = Integer.MAX_VALUE;
    boolean tle = false;
    for (int i = 0; i < keirosu; i++) {
      if (time[i] <= limit && cost[i] < min) {
        min = cost[i];
        tle = true;
      }
    }
    System.out.println(tle ? min : "TLE");
  }

}
