// https://abc112.contest.atcoder.jp/tasks/abc112_b
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int input_N = Integer.parseInt(sc.next());
		int input_T = Integer.parseInt(sc.next());
 
        // programming
        int min_cost = Integer.MAX_VALUE;
        boolean is_found = false;
        for (int i = 0; i < input_N; i++) {
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if (t <= input_T && c < min_cost) {
                is_found = true;
                min_cost = c;
            }
        }

        if (is_found) {
            System.out.println(min_cost);
        } else {
            System.out.println("TLE");
        }
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int input_N = Integer.parseInt(sc.next());
		int input_T = Integer.parseInt(sc.next());
 
        // programming
        int min_cost = Integer.MAX_VALUE;
        boolean is_found = false;
        for (int i = 0; i < input_N; i++) {
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if (t <= input_T && c < min_cost) {
                is_found = true;
                min_cost = c;
            }
        }

        if (is_found) {
            System.out.println(min_cost);
        } else {
            System.out.println("TLE");
        }
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int input_N = Integer.parseInt(sc.next());
		int input_T = Integer.parseInt(sc.next());
 
        // programming
        int min_cost = Integer.MAX_VALUE;
        boolean is_found = false;
        for (int i = 0; i < input_N; i++) {
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if (t <= input_T && c < min_cost) {
                is_found = true;
                min_cost = c;
            }
        }

        if (is_found) {
            System.out.println(min_cost);
        } else {
            System.out.println("TLE");
        }
	} main {
		Scanner sc = new Scanner(System.in);
		int input_N = Integer.parseInt(sc.next());
		int input_T = Integer.parseInt(sc.next());
 
        // programming
        int min_cost = Integer.MAX_VALUE;
        boolean is_found = false;
        for (int i = 0; i < input_N; i++) {
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if (t <= input_T && c < min_cost) {
                is_found = true;
                min_cost = c;
            }
        }

        if (is_found) {
            System.out.println(min_cost);
        } else {
            System.out.println("TLE");
        }
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int input_N = Integer.parseInt(sc.next()); input_N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int input_T = Integer.parseInt(sc.next()); input_T Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int min_cost = Integer.MAX_VALUE; min_cost Integer.MAX_VALUE Integer Integer.MAX_VALUE boolean is_found = false; is_found false for (int i = 0; i < input_N; i++) {
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if (t <= input_T && c < min_cost) {
                is_found = true;
                min_cost = c;
            }
        } int i = 0; int i = 0; i 0 i < input_N i input_N i++ i++ i {
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if (t <= input_T && c < min_cost) {
                is_found = true;
                min_cost = c;
            }
        } {
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if (t <= input_T && c < min_cost) {
                is_found = true;
                min_cost = c;
            }
        } int c = Integer.parseInt(sc.next()); c Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int t = Integer.parseInt(sc.next()); t Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if (t <= input_T && c < min_cost) {
                is_found = true;
                min_cost = c;
            } t <= input_T && c < min_cost t <= input_T t input_T c < min_cost c min_cost {
                is_found = true;
                min_cost = c;
            } is_found = true is_found true min_cost = c min_cost c if (is_found) {
            System.out.println(min_cost);
        } else {
            System.out.println("TLE");
        } is_found {
            System.out.println(min_cost);
        } System.out.println(min_cost) System.out.println System.out System System.out min_cost {
            System.out.println("TLE");
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int input_N = Integer.parseInt(sc.next());
		int input_T = Integer.parseInt(sc.next());
 
        // programming
        int min_cost = Integer.MAX_VALUE;
        boolean is_found = false;
        for (int i = 0; i < input_N; i++) {
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if (t <= input_T && c < min_cost) {
                is_found = true;
                min_cost = c;
            }
        }

        if (is_found) {
            System.out.println(min_cost);
        } else {
            System.out.println("TLE");
        }
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int input_N = Integer.parseInt(sc.next());
		int input_T = Integer.parseInt(sc.next());
 
        // programming
        int min_cost = Integer.MAX_VALUE;
        boolean is_found = false;
        for (int i = 0; i < input_N; i++) {
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if (t <= input_T && c < min_cost) {
                is_found = true;
                min_cost = c;
            }
        }

        if (is_found) {
            System.out.println(min_cost);
        } else {
            System.out.println("TLE");
        }
	}
} Main
// https://abc112.contest.atcoder.jp/tasks/abc112_b
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int input_N = Integer.parseInt(sc.next());
		int input_T = Integer.parseInt(sc.next());
 
        // programming
        int min_cost = Integer.MAX_VALUE;
        boolean is_found = false;
        for (int i = 0; i < input_N; i++) {
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if (t <= input_T && c < min_cost) {
                is_found = true;
                min_cost = c;
            }
        }

        if (is_found) {
            System.out.println(min_cost);
        } else {
            System.out.println("TLE");
        }
	}
}