/**
 * @author Vicfred
 * 11/3/18
 */

import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N, T;
        N = scanner.nextInt();
        T = scanner.nextInt();
        int minima = 999999;
        boolean found = false;
        for(int i = 0; i < N; ++i) {
            int c, t;
            c = scanner.nextInt();
            t = scanner.nextInt();
            if(t > T)
                continue;
            minima = Math.min(minima, c);
            found = true;
        }
        if(found)
            System.out.println(minima);
        else
            System.out.println("TLE");
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N, T;
        N = scanner.nextInt();
        T = scanner.nextInt();
        int minima = 999999;
        boolean found = false;
        for(int i = 0; i < N; ++i) {
            int c, t;
            c = scanner.nextInt();
            t = scanner.nextInt();
            if(t > T)
                continue;
            minima = Math.min(minima, c);
            found = true;
        }
        if(found)
            System.out.println(minima);
        else
            System.out.println("TLE");
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N, T;
        N = scanner.nextInt();
        T = scanner.nextInt();
        int minima = 999999;
        boolean found = false;
        for(int i = 0; i < N; ++i) {
            int c, t;
            c = scanner.nextInt();
            t = scanner.nextInt();
            if(t > T)
                continue;
            minima = Math.min(minima, c);
            found = true;
        }
        if(found)
            System.out.println(minima);
        else
            System.out.println("TLE");
    } main {
        Scanner scanner = new Scanner(System.in);
        int N, T;
        N = scanner.nextInt();
        T = scanner.nextInt();
        int minima = 999999;
        boolean found = false;
        for(int i = 0; i < N; ++i) {
            int c, t;
            c = scanner.nextInt();
            t = scanner.nextInt();
            if(t > T)
                continue;
            minima = Math.min(minima, c);
            found = true;
        }
        if(found)
            System.out.println(minima);
        else
            System.out.println("TLE");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N N T; T N = scanner.nextInt() N scanner.nextInt() scanner.nextInt scanner T = scanner.nextInt() T scanner.nextInt() scanner.nextInt scanner int minima = 999999; minima 999999 boolean found = false; found false for(int i = 0; i < N; ++i) {
            int c, t;
            c = scanner.nextInt();
            t = scanner.nextInt();
            if(t > T)
                continue;
            minima = Math.min(minima, c);
            found = true;
        } int i = 0; int i = 0; i 0 i < N i N ++i ++i i {
            int c, t;
            c = scanner.nextInt();
            t = scanner.nextInt();
            if(t > T)
                continue;
            minima = Math.min(minima, c);
            found = true;
        } {
            int c, t;
            c = scanner.nextInt();
            t = scanner.nextInt();
            if(t > T)
                continue;
            minima = Math.min(minima, c);
            found = true;
        } int c c t; t c = scanner.nextInt() c scanner.nextInt() scanner.nextInt scanner t = scanner.nextInt() t scanner.nextInt() scanner.nextInt scanner if(t > T)
                continue; t > T t T continue; minima = Math.min(minima, c) minima Math.min(minima, c) Math.min Math minima c found = true found true if(found)
            System.out.println(minima);
        else
            System.out.println("TLE"); found System.out.println(minima) System.out.println System.out System System.out minima System.out.println("TLE") System.out.println System.out System System.out "TLE" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N, T;
        N = scanner.nextInt();
        T = scanner.nextInt();
        int minima = 999999;
        boolean found = false;
        for(int i = 0; i < N; ++i) {
            int c, t;
            c = scanner.nextInt();
            t = scanner.nextInt();
            if(t > T)
                continue;
            minima = Math.min(minima, c);
            found = true;
        }
        if(found)
            System.out.println(minima);
        else
            System.out.println("TLE");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N, T;
        N = scanner.nextInt();
        T = scanner.nextInt();
        int minima = 999999;
        boolean found = false;
        for(int i = 0; i < N; ++i) {
            int c, t;
            c = scanner.nextInt();
            t = scanner.nextInt();
            if(t > T)
                continue;
            minima = Math.min(minima, c);
            found = true;
        }
        if(found)
            System.out.println(minima);
        else
            System.out.println("TLE");
    }
} Main
/**
 * @author Vicfred
 * 11/3/18
 */

import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N, T;
        N = scanner.nextInt();
        T = scanner.nextInt();
        int minima = 999999;
        boolean found = false;
        for(int i = 0; i < N; ++i) {
            int c, t;
            c = scanner.nextInt();
            t = scanner.nextInt();
            if(t > T)
                continue;
            minima = Math.min(minima, c);
            found = true;
        }
        if(found)
            System.out.println(minima);
        else
            System.out.println("TLE");
    }
}
