import java.util.Scanner;
import java.util.HashMap;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int T = sc.nextInt();
    int minCost = 0;

    for (int i = 0; i < N; i++) {

      int c1 = sc.nextInt();
      int t1 = sc.nextInt();

      if (t1 <= T) {
        if (minCost == 0 || c1 < minCost) {
          minCost = c1;
        }
      }
    }
    
    System.out.println(minCost == 0 ? "TLE" : minCost);
  }
} import java.util.Scanner; Scanner java.util import java.util.HashMap; HashMap java.util public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int T = sc.nextInt();
    int minCost = 0;

    for (int i = 0; i < N; i++) {

      int c1 = sc.nextInt();
      int t1 = sc.nextInt();

      if (t1 <= T) {
        if (minCost == 0 || c1 < minCost) {
          minCost = c1;
        }
      }
    }
    
    System.out.println(minCost == 0 ? "TLE" : minCost);
  }
} Main public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int T = sc.nextInt();
    int minCost = 0;

    for (int i = 0; i < N; i++) {

      int c1 = sc.nextInt();
      int t1 = sc.nextInt();

      if (t1 <= T) {
        if (minCost == 0 || c1 < minCost) {
          minCost = c1;
        }
      }
    }
    
    System.out.println(minCost == 0 ? "TLE" : minCost);
  } main {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int T = sc.nextInt();
    int minCost = 0;

    for (int i = 0; i < N; i++) {

      int c1 = sc.nextInt();
      int t1 = sc.nextInt();

      if (t1 <= T) {
        if (minCost == 0 || c1 < minCost) {
          minCost = c1;
        }
      }
    }
    
    System.out.println(minCost == 0 ? "TLE" : minCost);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int T = sc.nextInt(); T sc.nextInt() sc.nextInt sc int minCost = 0; minCost 0 for (int i = 0; i < N; i++) {

      int c1 = sc.nextInt();
      int t1 = sc.nextInt();

      if (t1 <= T) {
        if (minCost == 0 || c1 < minCost) {
          minCost = c1;
        }
      }
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {

      int c1 = sc.nextInt();
      int t1 = sc.nextInt();

      if (t1 <= T) {
        if (minCost == 0 || c1 < minCost) {
          minCost = c1;
        }
      }
    } {

      int c1 = sc.nextInt();
      int t1 = sc.nextInt();

      if (t1 <= T) {
        if (minCost == 0 || c1 < minCost) {
          minCost = c1;
        }
      }
    } int c1 = sc.nextInt(); c1 sc.nextInt() sc.nextInt sc int t1 = sc.nextInt(); t1 sc.nextInt() sc.nextInt sc if (t1 <= T) {
        if (minCost == 0 || c1 < minCost) {
          minCost = c1;
        }
      } t1 <= T t1 T {
        if (minCost == 0 || c1 < minCost) {
          minCost = c1;
        }
      } if (minCost == 0 || c1 < minCost) {
          minCost = c1;
        } minCost == 0 || c1 < minCost minCost == 0 minCost 0 c1 < minCost c1 minCost {
          minCost = c1;
        } minCost = c1 minCost c1 System.out.println(minCost == 0 ? "TLE" : minCost) System.out.println System.out System System.out minCost == 0 ? "TLE" : minCost minCost == 0 minCost 0 "TLE" minCost String[] args args public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int T = sc.nextInt();
    int minCost = 0;

    for (int i = 0; i < N; i++) {

      int c1 = sc.nextInt();
      int t1 = sc.nextInt();

      if (t1 <= T) {
        if (minCost == 0 || c1 < minCost) {
          minCost = c1;
        }
      }
    }
    
    System.out.println(minCost == 0 ? "TLE" : minCost);
  }
} public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int T = sc.nextInt();
    int minCost = 0;

    for (int i = 0; i < N; i++) {

      int c1 = sc.nextInt();
      int t1 = sc.nextInt();

      if (t1 <= T) {
        if (minCost == 0 || c1 < minCost) {
          minCost = c1;
        }
      }
    }
    
    System.out.println(minCost == 0 ? "TLE" : minCost);
  }
} Main
import java.util.Scanner;
import java.util.HashMap;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int T = sc.nextInt();
    int minCost = 0;

    for (int i = 0; i < N; i++) {

      int c1 = sc.nextInt();
      int t1 = sc.nextInt();

      if (t1 <= T) {
        if (minCost == 0 || c1 < minCost) {
          minCost = c1;
        }
      }
    }
    
    System.out.println(minCost == 0 ? "TLE" : minCost);
  }
}