import java.util.*;
public class Main 
{
	public static void main(String[] args)
	{
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		int T = in.nextInt();
		ArrayList<Integer> arr = new ArrayList<Integer>();
		for (int i = 0 ; i < N ; i++)
		{
			int c = in.nextInt();
			int t = in.nextInt();
			if (t <= T)
			{
				arr.add(c);
			}
		}
		if (arr.size() == 0)
		{
			System.out.println("TLE");
			return;
		}	
		int ans = arr.get(0);
		for(int i = 0; i < arr.size(); i++)
		{
			if(ans > arr.get(i))
				ans = arr.get(i);
		}
		System.out.println(ans);
	}
} import java.util.*; util.* java public class Main 
{
	public static void main(String[] args)
	{
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		int T = in.nextInt();
		ArrayList<Integer> arr = new ArrayList<Integer>();
		for (int i = 0 ; i < N ; i++)
		{
			int c = in.nextInt();
			int t = in.nextInt();
			if (t <= T)
			{
				arr.add(c);
			}
		}
		if (arr.size() == 0)
		{
			System.out.println("TLE");
			return;
		}	
		int ans = arr.get(0);
		for(int i = 0; i < arr.size(); i++)
		{
			if(ans > arr.get(i))
				ans = arr.get(i);
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args)
	{
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		int T = in.nextInt();
		ArrayList<Integer> arr = new ArrayList<Integer>();
		for (int i = 0 ; i < N ; i++)
		{
			int c = in.nextInt();
			int t = in.nextInt();
			if (t <= T)
			{
				arr.add(c);
			}
		}
		if (arr.size() == 0)
		{
			System.out.println("TLE");
			return;
		}	
		int ans = arr.get(0);
		for(int i = 0; i < arr.size(); i++)
		{
			if(ans > arr.get(i))
				ans = arr.get(i);
		}
		System.out.println(ans);
	} main {
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		int T = in.nextInt();
		ArrayList<Integer> arr = new ArrayList<Integer>();
		for (int i = 0 ; i < N ; i++)
		{
			int c = in.nextInt();
			int t = in.nextInt();
			if (t <= T)
			{
				arr.add(c);
			}
		}
		if (arr.size() == 0)
		{
			System.out.println("TLE");
			return;
		}	
		int ans = arr.get(0);
		for(int i = 0; i < arr.size(); i++)
		{
			if(ans > arr.get(i))
				ans = arr.get(i);
		}
		System.out.println(ans);
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int N = in.nextInt(); N in.nextInt() in.nextInt in int T = in.nextInt(); T in.nextInt() in.nextInt in ArrayList<Integer> arr = new ArrayList<Integer>(); arr new ArrayList<Integer>() for (int i = 0 ; i < N ; i++)
		{
			int c = in.nextInt();
			int t = in.nextInt();
			if (t <= T)
			{
				arr.add(c);
			}
		} int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
			int c = in.nextInt();
			int t = in.nextInt();
			if (t <= T)
			{
				arr.add(c);
			}
		} {
			int c = in.nextInt();
			int t = in.nextInt();
			if (t <= T)
			{
				arr.add(c);
			}
		} int c = in.nextInt(); c in.nextInt() in.nextInt in int t = in.nextInt(); t in.nextInt() in.nextInt in if (t <= T)
			{
				arr.add(c);
			} t <= T t T {
				arr.add(c);
			} arr.add(c) arr.add arr c if (arr.size() == 0)
		{
			System.out.println("TLE");
			return;
		} arr.size() == 0 arr.size() arr.size arr 0 {
			System.out.println("TLE");
			return;
		} System.out.println("TLE") System.out.println System.out System System.out "TLE" return; int ans = arr.get(0); ans arr.get(0) arr.get arr 0 for(int i = 0; i < arr.size(); i++)
		{
			if(ans > arr.get(i))
				ans = arr.get(i);
		} int i = 0; int i = 0; i 0 i < arr.size() i arr.size() arr.size arr i++ i++ i {
			if(ans > arr.get(i))
				ans = arr.get(i);
		} {
			if(ans > arr.get(i))
				ans = arr.get(i);
		} if(ans > arr.get(i))
				ans = arr.get(i); ans > arr.get(i) ans arr.get(i) arr.get arr i ans = arr.get(i) ans arr.get(i) arr.get arr i System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main 
{
	public static void main(String[] args)
	{
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		int T = in.nextInt();
		ArrayList<Integer> arr = new ArrayList<Integer>();
		for (int i = 0 ; i < N ; i++)
		{
			int c = in.nextInt();
			int t = in.nextInt();
			if (t <= T)
			{
				arr.add(c);
			}
		}
		if (arr.size() == 0)
		{
			System.out.println("TLE");
			return;
		}	
		int ans = arr.get(0);
		for(int i = 0; i < arr.size(); i++)
		{
			if(ans > arr.get(i))
				ans = arr.get(i);
		}
		System.out.println(ans);
	}
} public class Main 
{
	public static void main(String[] args)
	{
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		int T = in.nextInt();
		ArrayList<Integer> arr = new ArrayList<Integer>();
		for (int i = 0 ; i < N ; i++)
		{
			int c = in.nextInt();
			int t = in.nextInt();
			if (t <= T)
			{
				arr.add(c);
			}
		}
		if (arr.size() == 0)
		{
			System.out.println("TLE");
			return;
		}	
		int ans = arr.get(0);
		for(int i = 0; i < arr.size(); i++)
		{
			if(ans > arr.get(i))
				ans = arr.get(i);
		}
		System.out.println(ans);
	}
} Main
import java.util.*;
public class Main 
{
	public static void main(String[] args)
	{
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		int T = in.nextInt();
		ArrayList<Integer> arr = new ArrayList<Integer>();
		for (int i = 0 ; i < N ; i++)
		{
			int c = in.nextInt();
			int t = in.nextInt();
			if (t <= T)
			{
				arr.add(c);
			}
		}
		if (arr.size() == 0)
		{
			System.out.println("TLE");
			return;
		}	
		int ans = arr.get(0);
		for(int i = 0; i < arr.size(); i++)
		{
			if(ans > arr.get(i))
				ans = arr.get(i);
		}
		System.out.println(ans);
	}
}