import java.util.*;
public class Main {


    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N_pathCount = Integer.parseInt(scan.next());
        int T_timeLimit = Integer.parseInt(scan.next());

        int minCost = 999999999;
        for(int i = 0; i < N_pathCount; i++){
           int cost = Integer.parseInt(scan.next());
           int time = Integer.parseInt(scan.next());

           if(time <= T_timeLimit){
               if(cost < minCost) minCost = cost;
           }
        }

        if(minCost == 999999999) {
            System.out.println("TLE");
        }else{
            System.out.println(minCost);
        }
    }
} import java.util.*; util.* java public class Main {


    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N_pathCount = Integer.parseInt(scan.next());
        int T_timeLimit = Integer.parseInt(scan.next());

        int minCost = 999999999;
        for(int i = 0; i < N_pathCount; i++){
           int cost = Integer.parseInt(scan.next());
           int time = Integer.parseInt(scan.next());

           if(time <= T_timeLimit){
               if(cost < minCost) minCost = cost;
           }
        }

        if(minCost == 999999999) {
            System.out.println("TLE");
        }else{
            System.out.println(minCost);
        }
    }
} Main public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N_pathCount = Integer.parseInt(scan.next());
        int T_timeLimit = Integer.parseInt(scan.next());

        int minCost = 999999999;
        for(int i = 0; i < N_pathCount; i++){
           int cost = Integer.parseInt(scan.next());
           int time = Integer.parseInt(scan.next());

           if(time <= T_timeLimit){
               if(cost < minCost) minCost = cost;
           }
        }

        if(minCost == 999999999) {
            System.out.println("TLE");
        }else{
            System.out.println(minCost);
        }
    } main {

        Scanner scan = new Scanner(System.in);
        int N_pathCount = Integer.parseInt(scan.next());
        int T_timeLimit = Integer.parseInt(scan.next());

        int minCost = 999999999;
        for(int i = 0; i < N_pathCount; i++){
           int cost = Integer.parseInt(scan.next());
           int time = Integer.parseInt(scan.next());

           if(time <= T_timeLimit){
               if(cost < minCost) minCost = cost;
           }
        }

        if(minCost == 999999999) {
            System.out.println("TLE");
        }else{
            System.out.println(minCost);
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N_pathCount = Integer.parseInt(scan.next()); N_pathCount Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int T_timeLimit = Integer.parseInt(scan.next()); T_timeLimit Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int minCost = 999999999; minCost 999999999 for(int i = 0; i < N_pathCount; i++){
           int cost = Integer.parseInt(scan.next());
           int time = Integer.parseInt(scan.next());

           if(time <= T_timeLimit){
               if(cost < minCost) minCost = cost;
           }
        } int i = 0; int i = 0; i 0 i < N_pathCount i N_pathCount i++ i++ i {
           int cost = Integer.parseInt(scan.next());
           int time = Integer.parseInt(scan.next());

           if(time <= T_timeLimit){
               if(cost < minCost) minCost = cost;
           }
        } {
           int cost = Integer.parseInt(scan.next());
           int time = Integer.parseInt(scan.next());

           if(time <= T_timeLimit){
               if(cost < minCost) minCost = cost;
           }
        } int cost = Integer.parseInt(scan.next()); cost Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int time = Integer.parseInt(scan.next()); time Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan if(time <= T_timeLimit){
               if(cost < minCost) minCost = cost;
           } time <= T_timeLimit time T_timeLimit {
               if(cost < minCost) minCost = cost;
           } if(cost < minCost) minCost = cost; cost < minCost cost minCost minCost = cost minCost cost if(minCost == 999999999) {
            System.out.println("TLE");
        }else{
            System.out.println(minCost);
        } minCost == 999999999 minCost 999999999 {
            System.out.println("TLE");
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
            System.out.println(minCost);
        } System.out.println(minCost) System.out.println System.out System System.out minCost String[] args args public class Main {


    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N_pathCount = Integer.parseInt(scan.next());
        int T_timeLimit = Integer.parseInt(scan.next());

        int minCost = 999999999;
        for(int i = 0; i < N_pathCount; i++){
           int cost = Integer.parseInt(scan.next());
           int time = Integer.parseInt(scan.next());

           if(time <= T_timeLimit){
               if(cost < minCost) minCost = cost;
           }
        }

        if(minCost == 999999999) {
            System.out.println("TLE");
        }else{
            System.out.println(minCost);
        }
    }
} public class Main {


    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N_pathCount = Integer.parseInt(scan.next());
        int T_timeLimit = Integer.parseInt(scan.next());

        int minCost = 999999999;
        for(int i = 0; i < N_pathCount; i++){
           int cost = Integer.parseInt(scan.next());
           int time = Integer.parseInt(scan.next());

           if(time <= T_timeLimit){
               if(cost < minCost) minCost = cost;
           }
        }

        if(minCost == 999999999) {
            System.out.println("TLE");
        }else{
            System.out.println(minCost);
        }
    }
} Main
import java.util.*;
public class Main {


    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N_pathCount = Integer.parseInt(scan.next());
        int T_timeLimit = Integer.parseInt(scan.next());

        int minCost = 999999999;
        for(int i = 0; i < N_pathCount; i++){
           int cost = Integer.parseInt(scan.next());
           int time = Integer.parseInt(scan.next());

           if(time <= T_timeLimit){
               if(cost < minCost) minCost = cost;
           }
        }

        if(minCost == 999999999) {
            System.out.println("TLE");
        }else{
            System.out.println(minCost);
        }
    }
}