

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int t = sc.nextInt();

		int minCost = Integer.MAX_VALUE;

		for(int i = 0; i < n; i++){
			int tmpC = sc.nextInt();
			int tmpT = sc.nextInt();

			if(tmpT <= t){
				minCost = Math.min(tmpC, minCost);
			}
		}

		System.out.println(minCost == Integer.MAX_VALUE ? "TLE" : minCost);

	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int t = sc.nextInt();

		int minCost = Integer.MAX_VALUE;

		for(int i = 0; i < n; i++){
			int tmpC = sc.nextInt();
			int tmpT = sc.nextInt();

			if(tmpT <= t){
				minCost = Math.min(tmpC, minCost);
			}
		}

		System.out.println(minCost == Integer.MAX_VALUE ? "TLE" : minCost);

	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int t = sc.nextInt();

		int minCost = Integer.MAX_VALUE;

		for(int i = 0; i < n; i++){
			int tmpC = sc.nextInt();
			int tmpT = sc.nextInt();

			if(tmpT <= t){
				minCost = Math.min(tmpC, minCost);
			}
		}

		System.out.println(minCost == Integer.MAX_VALUE ? "TLE" : minCost);

	} main {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int t = sc.nextInt();

		int minCost = Integer.MAX_VALUE;

		for(int i = 0; i < n; i++){
			int tmpC = sc.nextInt();
			int tmpT = sc.nextInt();

			if(tmpT <= t){
				minCost = Math.min(tmpC, minCost);
			}
		}

		System.out.println(minCost == Integer.MAX_VALUE ? "TLE" : minCost);

	} 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 minCost = Integer.MAX_VALUE; minCost Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i = 0; i < n; i++){
			int tmpC = sc.nextInt();
			int tmpT = sc.nextInt();

			if(tmpT <= t){
				minCost = Math.min(tmpC, minCost);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int tmpC = sc.nextInt();
			int tmpT = sc.nextInt();

			if(tmpT <= t){
				minCost = Math.min(tmpC, minCost);
			}
		} {
			int tmpC = sc.nextInt();
			int tmpT = sc.nextInt();

			if(tmpT <= t){
				minCost = Math.min(tmpC, minCost);
			}
		} int tmpC = sc.nextInt(); tmpC sc.nextInt() sc.nextInt sc int tmpT = sc.nextInt(); tmpT sc.nextInt() sc.nextInt sc if(tmpT <= t){
				minCost = Math.min(tmpC, minCost);
			} tmpT <= t tmpT t {
				minCost = Math.min(tmpC, minCost);
			} minCost = Math.min(tmpC, minCost) minCost Math.min(tmpC, minCost) Math.min Math tmpC minCost System.out.println(minCost == Integer.MAX_VALUE ? "TLE" : minCost) System.out.println System.out System System.out minCost == Integer.MAX_VALUE ? "TLE" : minCost minCost == Integer.MAX_VALUE minCost Integer.MAX_VALUE Integer Integer.MAX_VALUE "TLE" minCost String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int t = sc.nextInt();

		int minCost = Integer.MAX_VALUE;

		for(int i = 0; i < n; i++){
			int tmpC = sc.nextInt();
			int tmpT = sc.nextInt();

			if(tmpT <= t){
				minCost = Math.min(tmpC, minCost);
			}
		}

		System.out.println(minCost == Integer.MAX_VALUE ? "TLE" : minCost);

	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int t = sc.nextInt();

		int minCost = Integer.MAX_VALUE;

		for(int i = 0; i < n; i++){
			int tmpC = sc.nextInt();
			int tmpT = sc.nextInt();

			if(tmpT <= t){
				minCost = Math.min(tmpC, minCost);
			}
		}

		System.out.println(minCost == Integer.MAX_VALUE ? "TLE" : minCost);

	}

} Main


import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int t = sc.nextInt();

		int minCost = Integer.MAX_VALUE;

		for(int i = 0; i < n; i++){
			int tmpC = sc.nextInt();
			int tmpT = sc.nextInt();

			if(tmpT <= t){
				minCost = Math.min(tmpC, minCost);
			}
		}

		System.out.println(minCost == Integer.MAX_VALUE ? "TLE" : minCost);

	}

}
