import 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());
	int c[] = new int[N];
	int t[] = new int[N];
	for (int i = 0; i < N; i++) {
	    c[i] = Integer.parseInt(sc.next());
	    t[i] = Integer.parseInt(sc.next());
	}

	int minT = t[0];
	for (int i = 1; i< N; i++) {
	    int v = t[i];
	    if (v < minT) {
		minT = v;
	    }
	}

	int minC = c[0];
	for (int i = 0; i < N; i++) {
	    int v = t[i];
	    int w = c[i];
	    if (v <= T && w < minC) {
		minC = w;
	    }
	}

	if (T < minT) {
	    System.out.println("TLE");
	} else {
	    System.out.println(minC);
	}
    }
} import java.util.*; util.* java 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());
	int c[] = new int[N];
	int t[] = new int[N];
	for (int i = 0; i < N; i++) {
	    c[i] = Integer.parseInt(sc.next());
	    t[i] = Integer.parseInt(sc.next());
	}

	int minT = t[0];
	for (int i = 1; i< N; i++) {
	    int v = t[i];
	    if (v < minT) {
		minT = v;
	    }
	}

	int minC = c[0];
	for (int i = 0; i < N; i++) {
	    int v = t[i];
	    int w = c[i];
	    if (v <= T && w < minC) {
		minC = w;
	    }
	}

	if (T < minT) {
	    System.out.println("TLE");
	} else {
	    System.out.println(minC);
	}
    }
} 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());
	int c[] = new int[N];
	int t[] = new int[N];
	for (int i = 0; i < N; i++) {
	    c[i] = Integer.parseInt(sc.next());
	    t[i] = Integer.parseInt(sc.next());
	}

	int minT = t[0];
	for (int i = 1; i< N; i++) {
	    int v = t[i];
	    if (v < minT) {
		minT = v;
	    }
	}

	int minC = c[0];
	for (int i = 0; i < N; i++) {
	    int v = t[i];
	    int w = c[i];
	    if (v <= T && w < minC) {
		minC = w;
	    }
	}

	if (T < minT) {
	    System.out.println("TLE");
	} else {
	    System.out.println(minC);
	}
    } main {
	Scanner sc = new Scanner(System.in);
	int N = Integer.parseInt(sc.next());
	int T = Integer.parseInt(sc.next());
	int c[] = new int[N];
	int t[] = new int[N];
	for (int i = 0; i < N; i++) {
	    c[i] = Integer.parseInt(sc.next());
	    t[i] = Integer.parseInt(sc.next());
	}

	int minT = t[0];
	for (int i = 1; i< N; i++) {
	    int v = t[i];
	    if (v < minT) {
		minT = v;
	    }
	}

	int minC = c[0];
	for (int i = 0; i < N; i++) {
	    int v = t[i];
	    int w = c[i];
	    if (v <= T && w < minC) {
		minC = w;
	    }
	}

	if (T < minT) {
	    System.out.println("TLE");
	} else {
	    System.out.println(minC);
	}
    } 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 int c[] = new int[N]; c new int[N] N int t[] = new int[N]; t new int[N] N for (int i = 0; i < N; i++) {
	    c[i] = Integer.parseInt(sc.next());
	    t[i] = Integer.parseInt(sc.next());
	} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
	    c[i] = Integer.parseInt(sc.next());
	    t[i] = Integer.parseInt(sc.next());
	} {
	    c[i] = Integer.parseInt(sc.next());
	    t[i] = Integer.parseInt(sc.next());
	} c[i] = Integer.parseInt(sc.next()) c[i] c i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc t[i] = Integer.parseInt(sc.next()) t[i] t i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int minT = t[0]; minT t[0] t 0 for (int i = 1; i< N; i++) {
	    int v = t[i];
	    if (v < minT) {
		minT = v;
	    }
	} int i = 1; int i = 1; i 1 i< N i N i++ i++ i {
	    int v = t[i];
	    if (v < minT) {
		minT = v;
	    }
	} {
	    int v = t[i];
	    if (v < minT) {
		minT = v;
	    }
	} int v = t[i]; v t[i] t i if (v < minT) {
		minT = v;
	    } v < minT v minT {
		minT = v;
	    } minT = v minT v int minC = c[0]; minC c[0] c 0 for (int i = 0; i < N; i++) {
	    int v = t[i];
	    int w = c[i];
	    if (v <= T && w < minC) {
		minC = w;
	    }
	} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
	    int v = t[i];
	    int w = c[i];
	    if (v <= T && w < minC) {
		minC = w;
	    }
	} {
	    int v = t[i];
	    int w = c[i];
	    if (v <= T && w < minC) {
		minC = w;
	    }
	} int v = t[i]; v t[i] t i int w = c[i]; w c[i] c i if (v <= T && w < minC) {
		minC = w;
	    } v <= T && w < minC v <= T v T w < minC w minC {
		minC = w;
	    } minC = w minC w if (T < minT) {
	    System.out.println("TLE");
	} else {
	    System.out.println(minC);
	} T < minT T minT {
	    System.out.println("TLE");
	} System.out.println("TLE") System.out.println System.out System System.out "TLE" {
	    System.out.println(minC);
	} System.out.println(minC) System.out.println System.out System System.out minC 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());
	int c[] = new int[N];
	int t[] = new int[N];
	for (int i = 0; i < N; i++) {
	    c[i] = Integer.parseInt(sc.next());
	    t[i] = Integer.parseInt(sc.next());
	}

	int minT = t[0];
	for (int i = 1; i< N; i++) {
	    int v = t[i];
	    if (v < minT) {
		minT = v;
	    }
	}

	int minC = c[0];
	for (int i = 0; i < N; i++) {
	    int v = t[i];
	    int w = c[i];
	    if (v <= T && w < minC) {
		minC = w;
	    }
	}

	if (T < minT) {
	    System.out.println("TLE");
	} else {
	    System.out.println(minC);
	}
    }
} 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());
	int c[] = new int[N];
	int t[] = new int[N];
	for (int i = 0; i < N; i++) {
	    c[i] = Integer.parseInt(sc.next());
	    t[i] = Integer.parseInt(sc.next());
	}

	int minT = t[0];
	for (int i = 1; i< N; i++) {
	    int v = t[i];
	    if (v < minT) {
		minT = v;
	    }
	}

	int minC = c[0];
	for (int i = 0; i < N; i++) {
	    int v = t[i];
	    int w = c[i];
	    if (v <= T && w < minC) {
		minC = w;
	    }
	}

	if (T < minT) {
	    System.out.println("TLE");
	} else {
	    System.out.println(minC);
	}
    }
} Main
import 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());
	int c[] = new int[N];
	int t[] = new int[N];
	for (int i = 0; i < N; i++) {
	    c[i] = Integer.parseInt(sc.next());
	    t[i] = Integer.parseInt(sc.next());
	}

	int minT = t[0];
	for (int i = 1; i< N; i++) {
	    int v = t[i];
	    if (v < minT) {
		minT = v;
	    }
	}

	int minC = c[0];
	for (int i = 0; i < N; i++) {
	    int v = t[i];
	    int w = c[i];
	    if (v <= T && w < minC) {
		minC = w;
	    }
	}

	if (T < minT) {
	    System.out.println("TLE");
	} else {
	    System.out.println(minC);
	}
    }
}
