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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		ArrayList<Integer> cost = new ArrayList<>();
		ArrayList<Integer> time = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			cost.add(Integer.parseInt(sc.next()));
			time.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ansCost = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			if(time.get(i) <= T) {
				ansCost = Math.min(ansCost, cost.get(i));
			}
		}
		if(ansCost == Integer.MAX_VALUE) {
			System.out.println("TLE");
		}else {
			System.out.println(ansCost);
		}

	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		ArrayList<Integer> cost = new ArrayList<>();
		ArrayList<Integer> time = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			cost.add(Integer.parseInt(sc.next()));
			time.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ansCost = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			if(time.get(i) <= T) {
				ansCost = Math.min(ansCost, cost.get(i));
			}
		}
		if(ansCost == Integer.MAX_VALUE) {
			System.out.println("TLE");
		}else {
			System.out.println(ansCost);
		}

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		ArrayList<Integer> cost = new ArrayList<>();
		ArrayList<Integer> time = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			cost.add(Integer.parseInt(sc.next()));
			time.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ansCost = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			if(time.get(i) <= T) {
				ansCost = Math.min(ansCost, cost.get(i));
			}
		}
		if(ansCost == Integer.MAX_VALUE) {
			System.out.println("TLE");
		}else {
			System.out.println(ansCost);
		}

	} main {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		ArrayList<Integer> cost = new ArrayList<>();
		ArrayList<Integer> time = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			cost.add(Integer.parseInt(sc.next()));
			time.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ansCost = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			if(time.get(i) <= T) {
				ansCost = Math.min(ansCost, cost.get(i));
			}
		}
		if(ansCost == Integer.MAX_VALUE) {
			System.out.println("TLE");
		}else {
			System.out.println(ansCost);
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N 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 ArrayList<Integer> cost = new ArrayList<>(); cost new ArrayList<>() ArrayList<Integer> time = new ArrayList<>(); time new ArrayList<>() for(int i = 0; i < N; i++) {
			cost.add(Integer.parseInt(sc.next()));
			time.add(Integer.parseInt(sc.next()));
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			cost.add(Integer.parseInt(sc.next()));
			time.add(Integer.parseInt(sc.next()));
		} {
			cost.add(Integer.parseInt(sc.next()));
			time.add(Integer.parseInt(sc.next()));
		} cost.add(Integer.parseInt(sc.next())) cost.add cost Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc time.add(Integer.parseInt(sc.next())) time.add time Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc sc.close() sc.close sc int ansCost = Integer.MAX_VALUE; ansCost Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i = 0; i < N; i++) {
			if(time.get(i) <= T) {
				ansCost = Math.min(ansCost, cost.get(i));
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			if(time.get(i) <= T) {
				ansCost = Math.min(ansCost, cost.get(i));
			}
		} {
			if(time.get(i) <= T) {
				ansCost = Math.min(ansCost, cost.get(i));
			}
		} if(time.get(i) <= T) {
				ansCost = Math.min(ansCost, cost.get(i));
			} time.get(i) <= T time.get(i) time.get time i T {
				ansCost = Math.min(ansCost, cost.get(i));
			} ansCost = Math.min(ansCost, cost.get(i)) ansCost Math.min(ansCost, cost.get(i)) Math.min Math ansCost cost.get(i) cost.get cost i if(ansCost == Integer.MAX_VALUE) {
			System.out.println("TLE");
		}else {
			System.out.println(ansCost);
		} ansCost == Integer.MAX_VALUE ansCost 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(ansCost);
		} System.out.println(ansCost) System.out.println System.out System System.out ansCost String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		ArrayList<Integer> cost = new ArrayList<>();
		ArrayList<Integer> time = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			cost.add(Integer.parseInt(sc.next()));
			time.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ansCost = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			if(time.get(i) <= T) {
				ansCost = Math.min(ansCost, cost.get(i));
			}
		}
		if(ansCost == Integer.MAX_VALUE) {
			System.out.println("TLE");
		}else {
			System.out.println(ansCost);
		}

	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		ArrayList<Integer> cost = new ArrayList<>();
		ArrayList<Integer> time = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			cost.add(Integer.parseInt(sc.next()));
			time.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ansCost = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			if(time.get(i) <= T) {
				ansCost = Math.min(ansCost, cost.get(i));
			}
		}
		if(ansCost == Integer.MAX_VALUE) {
			System.out.println("TLE");
		}else {
			System.out.println(ansCost);
		}

	}
} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		int T = Integer.parseInt(sc.next());
		ArrayList<Integer> cost = new ArrayList<>();
		ArrayList<Integer> time = new ArrayList<>();
		for(int i = 0; i < N; i++) {
			cost.add(Integer.parseInt(sc.next()));
			time.add(Integer.parseInt(sc.next()));
		}
		sc.close();

		int ansCost = Integer.MAX_VALUE;
		for(int i = 0; i < N; i++) {
			if(time.get(i) <= T) {
				ansCost = Math.min(ansCost, cost.get(i));
			}
		}
		if(ansCost == Integer.MAX_VALUE) {
			System.out.println("TLE");
		}else {
			System.out.println(ansCost);
		}

	}
}