
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int cost = Integer.MAX_VALUE;
		for(int i = 0; i< n; i++) {
			int c = sc.nextInt();
			if(t >= sc.nextInt() &&
					cost > c)
				cost = c;
		}
		if(cost == Integer.MAX_VALUE)
			System.out.println("TLE");
		else
			System.out.println(cost);
	}
}

class Scanner {
	private static final int SPACE = (int)' ';
	private static final int LINE_END_0 = 13;
	private static final int LINE_END_1 = 10;
	private static final int BEFORE = -1;
	private BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	
	public String next(){
		StringBuilder sb = new StringBuilder();
		
		int length = BEFORE;
		readLoop: while(true) {
			try {
				int value = br.read();
				switch(value) {
				case LINE_END_1:
					if(length == BEFORE)
						break;
					
					if((int)sb.charAt(length) == LINE_END_0)
						sb.deleteCharAt(length);
				case SPACE:
					break readLoop;
				}
				sb.append((char)value);
				length++;

			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		return sb.toString();
	}
	
	public String[] nextArray(int length) {
		String[] array = new String[length];
		for(int i = 0; i < length; i++)
			array[i] = next();
		return array;
	}
	
	public double nextDouble() {
		return Double.parseDouble(next());
	}
	
	public double[] nextDoubleArray(int length) {
		double[] array = new double[length];
		for(int i = 0; i < length; i++)
			array[i] = nextDouble();
		return array;
	}
	
	public int nextInt() {
		return Integer.parseInt(next());
	}
	
	public int[] nextIntArray(int length) {
		int[] array = new int[length];
		for(int i = 0; i < length; i++)
			array[i] = nextInt();
		return array;
	}
	
	public long nextLong() {
		return Long.parseLong(next());
	}
	
	public long[] nextLongArray(int length) {
		long[] array = new long[length];
		for(int i = 0; i < length; i++)
			array[i] = nextLong();
		return array;
	}
	
	public boolean ready() {
		try {
			return br.ready();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return false;
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int cost = Integer.MAX_VALUE;
		for(int i = 0; i< n; i++) {
			int c = sc.nextInt();
			if(t >= sc.nextInt() &&
					cost > c)
				cost = c;
		}
		if(cost == Integer.MAX_VALUE)
			System.out.println("TLE");
		else
			System.out.println(cost);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int cost = Integer.MAX_VALUE;
		for(int i = 0; i< n; i++) {
			int c = sc.nextInt();
			if(t >= sc.nextInt() &&
					cost > c)
				cost = c;
		}
		if(cost == Integer.MAX_VALUE)
			System.out.println("TLE");
		else
			System.out.println(cost);
	} main {
		Scanner sc = new Scanner();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int cost = Integer.MAX_VALUE;
		for(int i = 0; i< n; i++) {
			int c = sc.nextInt();
			if(t >= sc.nextInt() &&
					cost > c)
				cost = c;
		}
		if(cost == Integer.MAX_VALUE)
			System.out.println("TLE");
		else
			System.out.println(cost);
	} Scanner sc = new Scanner(); sc new Scanner() int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc int cost = Integer.MAX_VALUE; cost Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i = 0; i< n; i++) {
			int c = sc.nextInt();
			if(t >= sc.nextInt() &&
					cost > c)
				cost = c;
		} int i = 0; int i = 0; i 0 i< n i n i++ i++ i {
			int c = sc.nextInt();
			if(t >= sc.nextInt() &&
					cost > c)
				cost = c;
		} {
			int c = sc.nextInt();
			if(t >= sc.nextInt() &&
					cost > c)
				cost = c;
		} int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc if(t >= sc.nextInt() &&
					cost > c)
				cost = c; t >= sc.nextInt() &&
					cost > c t >= sc.nextInt() t sc.nextInt() sc.nextInt sc cost > c cost c cost = c cost c if(cost == Integer.MAX_VALUE)
			System.out.println("TLE");
		else
			System.out.println(cost); cost == Integer.MAX_VALUE cost Integer.MAX_VALUE Integer Integer.MAX_VALUE System.out.println("TLE") System.out.println System.out System System.out "TLE" System.out.println(cost) System.out.println System.out System System.out cost String[] args args class Scanner {
	private static final int SPACE = (int)' ';
	private static final int LINE_END_0 = 13;
	private static final int LINE_END_1 = 10;
	private static final int BEFORE = -1;
	private BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	
	public String next(){
		StringBuilder sb = new StringBuilder();
		
		int length = BEFORE;
		readLoop: while(true) {
			try {
				int value = br.read();
				switch(value) {
				case LINE_END_1:
					if(length == BEFORE)
						break;
					
					if((int)sb.charAt(length) == LINE_END_0)
						sb.deleteCharAt(length);
				case SPACE:
					break readLoop;
				}
				sb.append((char)value);
				length++;

			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		return sb.toString();
	}
	
	public String[] nextArray(int length) {
		String[] array = new String[length];
		for(int i = 0; i < length; i++)
			array[i] = next();
		return array;
	}
	
	public double nextDouble() {
		return Double.parseDouble(next());
	}
	
	public double[] nextDoubleArray(int length) {
		double[] array = new double[length];
		for(int i = 0; i < length; i++)
			array[i] = nextDouble();
		return array;
	}
	
	public int nextInt() {
		return Integer.parseInt(next());
	}
	
	public int[] nextIntArray(int length) {
		int[] array = new int[length];
		for(int i = 0; i < length; i++)
			array[i] = nextInt();
		return array;
	}
	
	public long nextLong() {
		return Long.parseLong(next());
	}
	
	public long[] nextLongArray(int length) {
		long[] array = new long[length];
		for(int i = 0; i < length; i++)
			array[i] = nextLong();
		return array;
	}
	
	public boolean ready() {
		try {
			return br.ready();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return false;
	}
} Scanner private static final int SPACE = (int)' '; SPACE (int)' ' private static final int LINE_END_0 = 13; LINE_END_0 13 private static final int LINE_END_1 = 10; LINE_END_1 10 private static final int BEFORE = -1; BEFORE -1 1 private BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) public String next(){
		StringBuilder sb = new StringBuilder();
		
		int length = BEFORE;
		readLoop: while(true) {
			try {
				int value = br.read();
				switch(value) {
				case LINE_END_1:
					if(length == BEFORE)
						break;
					
					if((int)sb.charAt(length) == LINE_END_0)
						sb.deleteCharAt(length);
				case SPACE:
					break readLoop;
				}
				sb.append((char)value);
				length++;

			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		return sb.toString();
	} next {
		StringBuilder sb = new StringBuilder();
		
		int length = BEFORE;
		readLoop: while(true) {
			try {
				int value = br.read();
				switch(value) {
				case LINE_END_1:
					if(length == BEFORE)
						break;
					
					if((int)sb.charAt(length) == LINE_END_0)
						sb.deleteCharAt(length);
				case SPACE:
					break readLoop;
				}
				sb.append((char)value);
				length++;

			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		return sb.toString();
	} StringBuilder sb = new StringBuilder(); sb new StringBuilder() int length = BEFORE; length BEFORE return sb.toString(); sb.toString() sb.toString sb public String[] nextArray(int length) {
		String[] array = new String[length];
		for(int i = 0; i < length; i++)
			array[i] = next();
		return array;
	} nextArray {
		String[] array = new String[length];
		for(int i = 0; i < length; i++)
			array[i] = next();
		return array;
	} String[] array = new String[length]; array new String[length] length for(int i = 0; i < length; i++)
			array[i] = next(); int i = 0; int i = 0; i 0 i < length i length i++ i++ i array[i] = next(); array[i] = next() array[i] array i next() next return array; array int length length public double nextDouble() {
		return Double.parseDouble(next());
	} nextDouble {
		return Double.parseDouble(next());
	} return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next public double[] nextDoubleArray(int length) {
		double[] array = new double[length];
		for(int i = 0; i < length; i++)
			array[i] = nextDouble();
		return array;
	} nextDoubleArray {
		double[] array = new double[length];
		for(int i = 0; i < length; i++)
			array[i] = nextDouble();
		return array;
	} double[] array = new double[length]; array new double[length] length for(int i = 0; i < length; i++)
			array[i] = nextDouble(); int i = 0; int i = 0; i 0 i < length i length i++ i++ i array[i] = nextDouble(); array[i] = nextDouble() array[i] array i nextDouble() nextDouble return array; array int length length public int nextInt() {
		return Integer.parseInt(next());
	} nextInt {
		return Integer.parseInt(next());
	} return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public int[] nextIntArray(int length) {
		int[] array = new int[length];
		for(int i = 0; i < length; i++)
			array[i] = nextInt();
		return array;
	} nextIntArray {
		int[] array = new int[length];
		for(int i = 0; i < length; i++)
			array[i] = nextInt();
		return array;
	} int[] array = new int[length]; array new int[length] length for(int i = 0; i < length; i++)
			array[i] = nextInt(); int i = 0; int i = 0; i 0 i < length i length i++ i++ i array[i] = nextInt(); array[i] = nextInt() array[i] array i nextInt() nextInt return array; array int length length public long nextLong() {
		return Long.parseLong(next());
	} nextLong {
		return Long.parseLong(next());
	} return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public long[] nextLongArray(int length) {
		long[] array = new long[length];
		for(int i = 0; i < length; i++)
			array[i] = nextLong();
		return array;
	} nextLongArray {
		long[] array = new long[length];
		for(int i = 0; i < length; i++)
			array[i] = nextLong();
		return array;
	} long[] array = new long[length]; array new long[length] length for(int i = 0; i < length; i++)
			array[i] = nextLong(); int i = 0; int i = 0; i 0 i < length i length i++ i++ i array[i] = nextLong(); array[i] = nextLong() array[i] array i nextLong() nextLong return array; array int length length public boolean ready() {
		try {
			return br.ready();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return false;
	} ready {
		try {
			return br.ready();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return false;
	} try {
			return br.ready();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} IOException e {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			return br.ready();
		} return br.ready(); br.ready() br.ready br return false; false public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int cost = Integer.MAX_VALUE;
		for(int i = 0; i< n; i++) {
			int c = sc.nextInt();
			if(t >= sc.nextInt() &&
					cost > c)
				cost = c;
		}
		if(cost == Integer.MAX_VALUE)
			System.out.println("TLE");
		else
			System.out.println(cost);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int cost = Integer.MAX_VALUE;
		for(int i = 0; i< n; i++) {
			int c = sc.nextInt();
			if(t >= sc.nextInt() &&
					cost > c)
				cost = c;
		}
		if(cost == Integer.MAX_VALUE)
			System.out.println("TLE");
		else
			System.out.println(cost);
	}
} Main

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int cost = Integer.MAX_VALUE;
		for(int i = 0; i< n; i++) {
			int c = sc.nextInt();
			if(t >= sc.nextInt() &&
					cost > c)
				cost = c;
		}
		if(cost == Integer.MAX_VALUE)
			System.out.println("TLE");
		else
			System.out.println(cost);
	}
}

class Scanner {
	private static final int SPACE = (int)' ';
	private static final int LINE_END_0 = 13;
	private static final int LINE_END_1 = 10;
	private static final int BEFORE = -1;
	private BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	
	public String next(){
		StringBuilder sb = new StringBuilder();
		
		int length = BEFORE;
		readLoop: while(true) {
			try {
				int value = br.read();
				switch(value) {
				case LINE_END_1:
					if(length == BEFORE)
						break;
					
					if((int)sb.charAt(length) == LINE_END_0)
						sb.deleteCharAt(length);
				case SPACE:
					break readLoop;
				}
				sb.append((char)value);
				length++;

			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		return sb.toString();
	}
	
	public String[] nextArray(int length) {
		String[] array = new String[length];
		for(int i = 0; i < length; i++)
			array[i] = next();
		return array;
	}
	
	public double nextDouble() {
		return Double.parseDouble(next());
	}
	
	public double[] nextDoubleArray(int length) {
		double[] array = new double[length];
		for(int i = 0; i < length; i++)
			array[i] = nextDouble();
		return array;
	}
	
	public int nextInt() {
		return Integer.parseInt(next());
	}
	
	public int[] nextIntArray(int length) {
		int[] array = new int[length];
		for(int i = 0; i < length; i++)
			array[i] = nextInt();
		return array;
	}
	
	public long nextLong() {
		return Long.parseLong(next());
	}
	
	public long[] nextLongArray(int length) {
		long[] array = new long[length];
		for(int i = 0; i < length; i++)
			array[i] = nextLong();
		return array;
	}
	
	public boolean ready() {
		try {
			return br.ready();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return false;
	}
}
