import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int num = in.nextInt();
    int timelimit = in.nextInt();
    int costmin = 0;
    for (int i = 0; i < num; i++) {
      int cost = in.nextInt();
      int time = in.nextInt();
      if (timelimit < time) {
        continue;
      }
      if (costmin == 0 || costmin > cost) {
        costmin = cost;
      }
    }
    if (costmin == 0) {
      System.out.println("TLE");
    } else {
      System.out.println(costmin);
    }
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int num = in.nextInt();
    int timelimit = in.nextInt();
    int costmin = 0;
    for (int i = 0; i < num; i++) {
      int cost = in.nextInt();
      int time = in.nextInt();
      if (timelimit < time) {
        continue;
      }
      if (costmin == 0 || costmin > cost) {
        costmin = cost;
      }
    }
    if (costmin == 0) {
      System.out.println("TLE");
    } else {
      System.out.println(costmin);
    }
  }
} Main public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int num = in.nextInt();
    int timelimit = in.nextInt();
    int costmin = 0;
    for (int i = 0; i < num; i++) {
      int cost = in.nextInt();
      int time = in.nextInt();
      if (timelimit < time) {
        continue;
      }
      if (costmin == 0 || costmin > cost) {
        costmin = cost;
      }
    }
    if (costmin == 0) {
      System.out.println("TLE");
    } else {
      System.out.println(costmin);
    }
  } main {
    Scanner in = new Scanner(System.in);
    int num = in.nextInt();
    int timelimit = in.nextInt();
    int costmin = 0;
    for (int i = 0; i < num; i++) {
      int cost = in.nextInt();
      int time = in.nextInt();
      if (timelimit < time) {
        continue;
      }
      if (costmin == 0 || costmin > cost) {
        costmin = cost;
      }
    }
    if (costmin == 0) {
      System.out.println("TLE");
    } else {
      System.out.println(costmin);
    }
  } Scanner in = new Scanner(System.in); in new Scanner(System.in) int num = in.nextInt(); num in.nextInt() in.nextInt in int timelimit = in.nextInt(); timelimit in.nextInt() in.nextInt in int costmin = 0; costmin 0 for (int i = 0; i < num; i++) {
      int cost = in.nextInt();
      int time = in.nextInt();
      if (timelimit < time) {
        continue;
      }
      if (costmin == 0 || costmin > cost) {
        costmin = cost;
      }
    } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
      int cost = in.nextInt();
      int time = in.nextInt();
      if (timelimit < time) {
        continue;
      }
      if (costmin == 0 || costmin > cost) {
        costmin = cost;
      }
    } {
      int cost = in.nextInt();
      int time = in.nextInt();
      if (timelimit < time) {
        continue;
      }
      if (costmin == 0 || costmin > cost) {
        costmin = cost;
      }
    } int cost = in.nextInt(); cost in.nextInt() in.nextInt in int time = in.nextInt(); time in.nextInt() in.nextInt in if (timelimit < time) {
        continue;
      } timelimit < time timelimit time {
        continue;
      } continue; if (costmin == 0 || costmin > cost) {
        costmin = cost;
      } costmin == 0 || costmin > cost costmin == 0 costmin 0 costmin > cost costmin cost {
        costmin = cost;
      } costmin = cost costmin cost if (costmin == 0) {
      System.out.println("TLE");
    } else {
      System.out.println(costmin);
    } costmin == 0 costmin 0 {
      System.out.println("TLE");
    } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
      System.out.println(costmin);
    } System.out.println(costmin) System.out.println System.out System System.out costmin String[] args args public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int num = in.nextInt();
    int timelimit = in.nextInt();
    int costmin = 0;
    for (int i = 0; i < num; i++) {
      int cost = in.nextInt();
      int time = in.nextInt();
      if (timelimit < time) {
        continue;
      }
      if (costmin == 0 || costmin > cost) {
        costmin = cost;
      }
    }
    if (costmin == 0) {
      System.out.println("TLE");
    } else {
      System.out.println(costmin);
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int num = in.nextInt();
    int timelimit = in.nextInt();
    int costmin = 0;
    for (int i = 0; i < num; i++) {
      int cost = in.nextInt();
      int time = in.nextInt();
      if (timelimit < time) {
        continue;
      }
      if (costmin == 0 || costmin > cost) {
        costmin = cost;
      }
    }
    if (costmin == 0) {
      System.out.println("TLE");
    } else {
      System.out.println(costmin);
    }
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int num = in.nextInt();
    int timelimit = in.nextInt();
    int costmin = 0;
    for (int i = 0; i < num; i++) {
      int cost = in.nextInt();
      int time = in.nextInt();
      if (timelimit < time) {
        continue;
      }
      if (costmin == 0 || costmin > cost) {
        costmin = cost;
      }
    }
    if (costmin == 0) {
      System.out.println("TLE");
    } else {
      System.out.println(costmin);
    }
  }
}