import java.util.Scanner;
import java.util.ArrayList;
import java.util.Collections;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int T = sc.nextInt();
    int[] costs = new int[N];
    int[] time = new int[N];
    int min = Integer.MAX_VALUE;

    for (int i = 0; i < N; i++) {
      costs[i] = sc.nextInt();
      time[i] = sc.nextInt();
    }

    for (int i = 0; i < N; i++) {
      if (time[i] <= T) {
        min = Math.min(min, costs[i]);
      }
    }

    if (min == Integer.MAX_VALUE) {
      System.out.println("TLE");
    } else {
      System.out.println(min);
    }
  }
} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections 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[] costs = new int[N];
    int[] time = new int[N];
    int min = Integer.MAX_VALUE;

    for (int i = 0; i < N; i++) {
      costs[i] = sc.nextInt();
      time[i] = sc.nextInt();
    }

    for (int i = 0; i < N; i++) {
      if (time[i] <= T) {
        min = Math.min(min, costs[i]);
      }
    }

    if (min == Integer.MAX_VALUE) {
      System.out.println("TLE");
    } else {
      System.out.println(min);
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int T = sc.nextInt();
    int[] costs = new int[N];
    int[] time = new int[N];
    int min = Integer.MAX_VALUE;

    for (int i = 0; i < N; i++) {
      costs[i] = sc.nextInt();
      time[i] = sc.nextInt();
    }

    for (int i = 0; i < N; i++) {
      if (time[i] <= T) {
        min = Math.min(min, costs[i]);
      }
    }

    if (min == Integer.MAX_VALUE) {
      System.out.println("TLE");
    } else {
      System.out.println(min);
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int T = sc.nextInt();
    int[] costs = new int[N];
    int[] time = new int[N];
    int min = Integer.MAX_VALUE;

    for (int i = 0; i < N; i++) {
      costs[i] = sc.nextInt();
      time[i] = sc.nextInt();
    }

    for (int i = 0; i < N; i++) {
      if (time[i] <= T) {
        min = Math.min(min, costs[i]);
      }
    }

    if (min == Integer.MAX_VALUE) {
      System.out.println("TLE");
    } else {
      System.out.println(min);
    }
  } 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[] costs = new int[N]; costs new int[N] N int[] time = new int[N]; time new int[N] N int min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < N; i++) {
      costs[i] = sc.nextInt();
      time[i] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      costs[i] = sc.nextInt();
      time[i] = sc.nextInt();
    } {
      costs[i] = sc.nextInt();
      time[i] = sc.nextInt();
    } costs[i] = sc.nextInt() costs[i] costs i sc.nextInt() sc.nextInt sc time[i] = sc.nextInt() time[i] time i sc.nextInt() sc.nextInt sc for (int i = 0; i < N; i++) {
      if (time[i] <= T) {
        min = Math.min(min, costs[i]);
      }
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      if (time[i] <= T) {
        min = Math.min(min, costs[i]);
      }
    } {
      if (time[i] <= T) {
        min = Math.min(min, costs[i]);
      }
    } if (time[i] <= T) {
        min = Math.min(min, costs[i]);
      } time[i] <= T time[i] time i T {
        min = Math.min(min, costs[i]);
      } min = Math.min(min, costs[i]) min Math.min(min, costs[i]) Math.min Math min costs[i] costs i if (min == Integer.MAX_VALUE) {
      System.out.println("TLE");
    } else {
      System.out.println(min);
    } min == Integer.MAX_VALUE min Integer.MAX_VALUE Integer Integer.MAX_VALUE {
      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 sc = new Scanner(System.in);
    int N = sc.nextInt();
    int T = sc.nextInt();
    int[] costs = new int[N];
    int[] time = new int[N];
    int min = Integer.MAX_VALUE;

    for (int i = 0; i < N; i++) {
      costs[i] = sc.nextInt();
      time[i] = sc.nextInt();
    }

    for (int i = 0; i < N; i++) {
      if (time[i] <= T) {
        min = Math.min(min, costs[i]);
      }
    }

    if (min == Integer.MAX_VALUE) {
      System.out.println("TLE");
    } else {
      System.out.println(min);
    }
  }
} public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int T = sc.nextInt();
    int[] costs = new int[N];
    int[] time = new int[N];
    int min = Integer.MAX_VALUE;

    for (int i = 0; i < N; i++) {
      costs[i] = sc.nextInt();
      time[i] = sc.nextInt();
    }

    for (int i = 0; i < N; i++) {
      if (time[i] <= T) {
        min = Math.min(min, costs[i]);
      }
    }

    if (min == Integer.MAX_VALUE) {
      System.out.println("TLE");
    } else {
      System.out.println(min);
    }
  }
} Main
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Collections;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int T = sc.nextInt();
    int[] costs = new int[N];
    int[] time = new int[N];
    int min = Integer.MAX_VALUE;

    for (int i = 0; i < N; i++) {
      costs[i] = sc.nextInt();
      time[i] = sc.nextInt();
    }

    for (int i = 0; i < N; i++) {
      if (time[i] <= T) {
        min = Math.min(min, costs[i]);
      }
    }

    if (min == Integer.MAX_VALUE) {
      System.out.println("TLE");
    } else {
      System.out.println(min);
    }
  }
}
