import 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 min = 10000;
  int cost = 10000;
  for(int i = 0;i < n;i++){
    int c = sc.nextInt();
    int s = sc.nextInt();
    if(s <= t){
      min = Math.min(min,s);
      cost = Math.min(cost,c);
    }
  }
  System.out.println(min == 10000 ? "TLE":cost);
}} import java.util.*; util.* java public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
  int n = sc.nextInt();
  int t = sc.nextInt();
  int min = 10000;
  int cost = 10000;
  for(int i = 0;i < n;i++){
    int c = sc.nextInt();
    int s = sc.nextInt();
    if(s <= t){
      min = Math.min(min,s);
      cost = Math.min(cost,c);
    }
  }
  System.out.println(min == 10000 ? "TLE":cost);
}} Main public static void main(String[] args){
Scanner sc = new Scanner(System.in);
  int n = sc.nextInt();
  int t = sc.nextInt();
  int min = 10000;
  int cost = 10000;
  for(int i = 0;i < n;i++){
    int c = sc.nextInt();
    int s = sc.nextInt();
    if(s <= t){
      min = Math.min(min,s);
      cost = Math.min(cost,c);
    }
  }
  System.out.println(min == 10000 ? "TLE":cost);
} main {
Scanner sc = new Scanner(System.in);
  int n = sc.nextInt();
  int t = sc.nextInt();
  int min = 10000;
  int cost = 10000;
  for(int i = 0;i < n;i++){
    int c = sc.nextInt();
    int s = sc.nextInt();
    if(s <= t){
      min = Math.min(min,s);
      cost = Math.min(cost,c);
    }
  }
  System.out.println(min == 10000 ? "TLE":cost);
} 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 min = 10000; min 10000 int cost = 10000; cost 10000 for(int i = 0;i < n;i++){
    int c = sc.nextInt();
    int s = sc.nextInt();
    if(s <= t){
      min = Math.min(min,s);
      cost = Math.min(cost,c);
    }
  } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
    int c = sc.nextInt();
    int s = sc.nextInt();
    if(s <= t){
      min = Math.min(min,s);
      cost = Math.min(cost,c);
    }
  } {
    int c = sc.nextInt();
    int s = sc.nextInt();
    if(s <= t){
      min = Math.min(min,s);
      cost = Math.min(cost,c);
    }
  } int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int s = sc.nextInt(); s sc.nextInt() sc.nextInt sc if(s <= t){
      min = Math.min(min,s);
      cost = Math.min(cost,c);
    } s <= t s t {
      min = Math.min(min,s);
      cost = Math.min(cost,c);
    } min = Math.min(min,s) min Math.min(min,s) Math.min Math min s cost = Math.min(cost,c) cost Math.min(cost,c) Math.min Math cost c System.out.println(min == 10000 ? "TLE":cost) System.out.println System.out System System.out min == 10000 ? "TLE":cost min == 10000 min 10000 "TLE" cost 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 min = 10000;
  int cost = 10000;
  for(int i = 0;i < n;i++){
    int c = sc.nextInt();
    int s = sc.nextInt();
    if(s <= t){
      min = Math.min(min,s);
      cost = Math.min(cost,c);
    }
  }
  System.out.println(min == 10000 ? "TLE":cost);
}} public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
  int n = sc.nextInt();
  int t = sc.nextInt();
  int min = 10000;
  int cost = 10000;
  for(int i = 0;i < n;i++){
    int c = sc.nextInt();
    int s = sc.nextInt();
    if(s <= t){
      min = Math.min(min,s);
      cost = Math.min(cost,c);
    }
  }
  System.out.println(min == 10000 ? "TLE":cost);
}} Main
import 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 min = 10000;
  int cost = 10000;
  for(int i = 0;i < n;i++){
    int c = sc.nextInt();
    int s = sc.nextInt();
    if(s <= t){
      min = Math.min(min,s);
      cost = Math.min(cost,c);
    }
  }
  System.out.println(min == 10000 ? "TLE":cost);
}}
