import java.lang.*;
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        
        int n = scan.nextInt();
        int limit = scan.nextInt();
        int min = Integer.MAX_VALUE;
        
        while(n-- > 0){
            int cost = scan.nextInt();
            int time = scan.nextInt();
            
            if(time <= limit)
                if(cost < min) min = cost;
        }
        
        if(min == Integer.MAX_VALUE) System.out.println("TLE");
        else System.out.println(min);
    }
} import java.lang.*; lang.* java import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        
        int n = scan.nextInt();
        int limit = scan.nextInt();
        int min = Integer.MAX_VALUE;
        
        while(n-- > 0){
            int cost = scan.nextInt();
            int time = scan.nextInt();
            
            if(time <= limit)
                if(cost < min) min = cost;
        }
        
        if(min == Integer.MAX_VALUE) System.out.println("TLE");
        else System.out.println(min);
    }
} Main public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        
        int n = scan.nextInt();
        int limit = scan.nextInt();
        int min = Integer.MAX_VALUE;
        
        while(n-- > 0){
            int cost = scan.nextInt();
            int time = scan.nextInt();
            
            if(time <= limit)
                if(cost < min) min = cost;
        }
        
        if(min == Integer.MAX_VALUE) System.out.println("TLE");
        else System.out.println(min);
    } main {
        Scanner scan = new Scanner(System.in);
        
        int n = scan.nextInt();
        int limit = scan.nextInt();
        int min = Integer.MAX_VALUE;
        
        while(n-- > 0){
            int cost = scan.nextInt();
            int time = scan.nextInt();
            
            if(time <= limit)
                if(cost < min) min = cost;
        }
        
        if(min == Integer.MAX_VALUE) System.out.println("TLE");
        else System.out.println(min);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int limit = scan.nextInt(); limit scan.nextInt() scan.nextInt scan int min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE while(n-- > 0){
            int cost = scan.nextInt();
            int time = scan.nextInt();
            
            if(time <= limit)
                if(cost < min) min = cost;
        } n-- > 0 n-- n 0 {
            int cost = scan.nextInt();
            int time = scan.nextInt();
            
            if(time <= limit)
                if(cost < min) min = cost;
        } int cost = scan.nextInt(); cost scan.nextInt() scan.nextInt scan int time = scan.nextInt(); time scan.nextInt() scan.nextInt scan if(time <= limit)
                if(cost < min) min = cost; time <= limit time limit if(cost < min) min = cost; cost < min cost min min = cost min cost 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 System.out System System.out "TLE" 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 scan = new Scanner(System.in);
        
        int n = scan.nextInt();
        int limit = scan.nextInt();
        int min = Integer.MAX_VALUE;
        
        while(n-- > 0){
            int cost = scan.nextInt();
            int time = scan.nextInt();
            
            if(time <= limit)
                if(cost < min) min = cost;
        }
        
        if(min == Integer.MAX_VALUE) System.out.println("TLE");
        else System.out.println(min);
    }
} public class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        
        int n = scan.nextInt();
        int limit = scan.nextInt();
        int min = Integer.MAX_VALUE;
        
        while(n-- > 0){
            int cost = scan.nextInt();
            int time = scan.nextInt();
            
            if(time <= limit)
                if(cost < min) min = cost;
        }
        
        if(min == Integer.MAX_VALUE) System.out.println("TLE");
        else System.out.println(min);
    }
} Main
import java.lang.*;
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        
        int n = scan.nextInt();
        int limit = scan.nextInt();
        int min = Integer.MAX_VALUE;
        
        while(n-- > 0){
            int cost = scan.nextInt();
            int time = scan.nextInt();
            
            if(time <= limit)
                if(cost < min) min = cost;
        }
        
        if(min == Integer.MAX_VALUE) System.out.println("TLE");
        else System.out.println(min);
    }
}
