import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int min = Integer.MAX_VALUE;
        boolean check = false;
        int[] cost = new int[n];
        int[] time = new int[n];

        for (int i = 0; i < n; i++) {
            cost[i] = sc.nextInt();
            time[i] = sc.nextInt();
            if (cost[i] < min && time[i] <= t) {
                min = cost[i];
                check = true;
            }
        }
        if (check) {
            System.out.println(min);
        } else {
            System.out.println("TLE");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int min = Integer.MAX_VALUE;
        boolean check = false;
        int[] cost = new int[n];
        int[] time = new int[n];

        for (int i = 0; i < n; i++) {
            cost[i] = sc.nextInt();
            time[i] = sc.nextInt();
            if (cost[i] < min && time[i] <= t) {
                min = cost[i];
                check = true;
            }
        }
        if (check) {
            System.out.println(min);
        } else {
            System.out.println("TLE");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int min = Integer.MAX_VALUE;
        boolean check = false;
        int[] cost = new int[n];
        int[] time = new int[n];

        for (int i = 0; i < n; i++) {
            cost[i] = sc.nextInt();
            time[i] = sc.nextInt();
            if (cost[i] < min && time[i] <= t) {
                min = cost[i];
                check = true;
            }
        }
        if (check) {
            System.out.println(min);
        } else {
            System.out.println("TLE");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int min = Integer.MAX_VALUE;
        boolean check = false;
        int[] cost = new int[n];
        int[] time = new int[n];

        for (int i = 0; i < n; i++) {
            cost[i] = sc.nextInt();
            time[i] = sc.nextInt();
            if (cost[i] < min && time[i] <= t) {
                min = cost[i];
                check = true;
            }
        }
        if (check) {
            System.out.println(min);
        } else {
            System.out.println("TLE");
        }
    } 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 min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE boolean check = false; check false int[] cost = new int[n]; cost new int[n] n int[] time = new int[n]; time new int[n] n for (int i = 0; i < n; i++) {
            cost[i] = sc.nextInt();
            time[i] = sc.nextInt();
            if (cost[i] < min && time[i] <= t) {
                min = cost[i];
                check = true;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            cost[i] = sc.nextInt();
            time[i] = sc.nextInt();
            if (cost[i] < min && time[i] <= t) {
                min = cost[i];
                check = true;
            }
        } {
            cost[i] = sc.nextInt();
            time[i] = sc.nextInt();
            if (cost[i] < min && time[i] <= t) {
                min = cost[i];
                check = true;
            }
        } cost[i] = sc.nextInt() cost[i] cost i sc.nextInt() sc.nextInt sc time[i] = sc.nextInt() time[i] time i sc.nextInt() sc.nextInt sc if (cost[i] < min && time[i] <= t) {
                min = cost[i];
                check = true;
            } cost[i] < min && time[i] <= t cost[i] < min cost[i] cost i min time[i] <= t time[i] time i t {
                min = cost[i];
                check = true;
            } min = cost[i] min cost[i] cost i check = true check true if (check) {
            System.out.println(min);
        } else {
            System.out.println("TLE");
        } check {
            System.out.println(min);
        } System.out.println(min) System.out.println System.out System System.out min {
            System.out.println("TLE");
        } 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 sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int min = Integer.MAX_VALUE;
        boolean check = false;
        int[] cost = new int[n];
        int[] time = new int[n];

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

        for (int i = 0; i < n; i++) {
            cost[i] = sc.nextInt();
            time[i] = sc.nextInt();
            if (cost[i] < min && time[i] <= t) {
                min = cost[i];
                check = true;
            }
        }
        if (check) {
            System.out.println(min);
        } else {
            System.out.println("TLE");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int min = Integer.MAX_VALUE;
        boolean check = false;
        int[] cost = new int[n];
        int[] time = new int[n];

        for (int i = 0; i < n; i++) {
            cost[i] = sc.nextInt();
            time[i] = sc.nextInt();
            if (cost[i] < min && time[i] <= t) {
                min = cost[i];
                check = true;
            }
        }
        if (check) {
            System.out.println(min);
        } else {
            System.out.println("TLE");
        }
    }
}