import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {

    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {

      String[] lines = in.readLine().split(" ");
      int n = Integer.parseInt(lines[0]);
      int t = Integer.parseInt(lines[1]);
      // int[] cost = new int[n];
      // int[] time = new int[n];
      int cost;
      int time;
      int ans = Integer.MAX_VALUE;

      for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        cost = Integer.parseInt(lines[0]);
        time = Integer.parseInt(lines[1]);
        if(time <= t)
          ans = Math.min(ans,cost);
      }

      System.out.println(ans < 100000 ? ans : "TLE");
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {

    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {

      String[] lines = in.readLine().split(" ");
      int n = Integer.parseInt(lines[0]);
      int t = Integer.parseInt(lines[1]);
      // int[] cost = new int[n];
      // int[] time = new int[n];
      int cost;
      int time;
      int ans = Integer.MAX_VALUE;

      for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        cost = Integer.parseInt(lines[0]);
        time = Integer.parseInt(lines[1]);
        if(time <= t)
          ans = Math.min(ans,cost);
      }

      System.out.println(ans < 100000 ? ans : "TLE");
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} Main public static void main(String[] args) {
    new Main().run();
  } main {
    new Main().run();
  } new Main().run() new Main().run new Main() String[] args args public void run() {

    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {

      String[] lines = in.readLine().split(" ");
      int n = Integer.parseInt(lines[0]);
      int t = Integer.parseInt(lines[1]);
      // int[] cost = new int[n];
      // int[] time = new int[n];
      int cost;
      int time;
      int ans = Integer.MAX_VALUE;

      for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        cost = Integer.parseInt(lines[0]);
        time = Integer.parseInt(lines[1]);
        if(time <= t)
          ans = Math.min(ans,cost);
      }

      System.out.println(ans < 100000 ? ans : "TLE");
    }
    catch(IOException e) {
      System.err.println(e);
    }
  } run {

    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {

      String[] lines = in.readLine().split(" ");
      int n = Integer.parseInt(lines[0]);
      int t = Integer.parseInt(lines[1]);
      // int[] cost = new int[n];
      // int[] time = new int[n];
      int cost;
      int time;
      int ans = Integer.MAX_VALUE;

      for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        cost = Integer.parseInt(lines[0]);
        time = Integer.parseInt(lines[1]);
        if(time <= t)
          ans = Math.min(ans,cost);
      }

      System.out.println(ans < 100000 ? ans : "TLE");
    }
    catch(IOException e) {
      System.err.println(e);
    }
  } try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {

      String[] lines = in.readLine().split(" ");
      int n = Integer.parseInt(lines[0]);
      int t = Integer.parseInt(lines[1]);
      // int[] cost = new int[n];
      // int[] time = new int[n];
      int cost;
      int time;
      int ans = Integer.MAX_VALUE;

      for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        cost = Integer.parseInt(lines[0]);
        time = Integer.parseInt(lines[1]);
        if(time <= t)
          ans = Math.min(ans,cost);
      }

      System.out.println(ans < 100000 ? ans : "TLE");
    }
    catch(IOException e) {
      System.err.println(e);
    } catch(IOException e) {
      System.err.println(e);
    } IOException e {
      System.err.println(e);
    } System.err.println(e) System.err.println System.err System System.err e {

      String[] lines = in.readLine().split(" ");
      int n = Integer.parseInt(lines[0]);
      int t = Integer.parseInt(lines[1]);
      // int[] cost = new int[n];
      // int[] time = new int[n];
      int cost;
      int time;
      int ans = Integer.MAX_VALUE;

      for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        cost = Integer.parseInt(lines[0]);
        time = Integer.parseInt(lines[1]);
        if(time <= t)
          ans = Math.min(ans,cost);
      }

      System.out.println(ans < 100000 ? ans : "TLE");
    } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)) BufferedReader in = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) String[] lines = in.readLine().split(" "); lines in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int n = Integer.parseInt(lines[0]); n Integer.parseInt(lines[0]) Integer.parseInt Integer lines[0] lines 0 int t = Integer.parseInt(lines[1]); t Integer.parseInt(lines[1]) Integer.parseInt Integer lines[1] lines 1 int cost; cost int time; time int ans = Integer.MAX_VALUE; ans Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        cost = Integer.parseInt(lines[0]);
        time = Integer.parseInt(lines[1]);
        if(time <= t)
          ans = Math.min(ans,cost);
      } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        lines = in.readLine().split(" ");
        cost = Integer.parseInt(lines[0]);
        time = Integer.parseInt(lines[1]);
        if(time <= t)
          ans = Math.min(ans,cost);
      } {
        lines = in.readLine().split(" ");
        cost = Integer.parseInt(lines[0]);
        time = Integer.parseInt(lines[1]);
        if(time <= t)
          ans = Math.min(ans,cost);
      } lines = in.readLine().split(" ") lines in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " cost = Integer.parseInt(lines[0]) cost Integer.parseInt(lines[0]) Integer.parseInt Integer lines[0] lines 0 time = Integer.parseInt(lines[1]) time Integer.parseInt(lines[1]) Integer.parseInt Integer lines[1] lines 1 if(time <= t)
          ans = Math.min(ans,cost); time <= t time t ans = Math.min(ans,cost) ans Math.min(ans,cost) Math.min Math ans cost System.out.println(ans < 100000 ? ans : "TLE") System.out.println System.out System System.out ans < 100000 ? ans : "TLE" ans < 100000 ans 100000 ans "TLE" public class Main {

  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {

    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {

      String[] lines = in.readLine().split(" ");
      int n = Integer.parseInt(lines[0]);
      int t = Integer.parseInt(lines[1]);
      // int[] cost = new int[n];
      // int[] time = new int[n];
      int cost;
      int time;
      int ans = Integer.MAX_VALUE;

      for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        cost = Integer.parseInt(lines[0]);
        time = Integer.parseInt(lines[1]);
        if(time <= t)
          ans = Math.min(ans,cost);
      }

      System.out.println(ans < 100000 ? ans : "TLE");
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} public class Main {

  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {

    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {

      String[] lines = in.readLine().split(" ");
      int n = Integer.parseInt(lines[0]);
      int t = Integer.parseInt(lines[1]);
      // int[] cost = new int[n];
      // int[] time = new int[n];
      int cost;
      int time;
      int ans = Integer.MAX_VALUE;

      for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        cost = Integer.parseInt(lines[0]);
        time = Integer.parseInt(lines[1]);
        if(time <= t)
          ans = Math.min(ans,cost);
      }

      System.out.println(ans < 100000 ? ans : "TLE");
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {

    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in))) {

      String[] lines = in.readLine().split(" ");
      int n = Integer.parseInt(lines[0]);
      int t = Integer.parseInt(lines[1]);
      // int[] cost = new int[n];
      // int[] time = new int[n];
      int cost;
      int time;
      int ans = Integer.MAX_VALUE;

      for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        cost = Integer.parseInt(lines[0]);
        time = Integer.parseInt(lines[1]);
        if(time <= t)
          ans = Math.min(ans,cost);
      }

      System.out.println(ans < 100000 ? ans : "TLE");
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
}