import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());
        int[] cost = new int[n];
        int[] time = new int[n];
        for (int i = 0; i < n; i++) {
            cost[i] = Integer.parseInt(sc.next());
            time[i] = Integer.parseInt(sc.next());
        }
        int ans = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            if (time[i] <= t) {
                if (cost[i] < ans) {
                    ans = cost[i];
                }
            }
        }
        if (ans == Integer.MAX_VALUE) {
            System.out.println("TLE");
        } else {
            System.out.println(ans);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());
        int[] cost = new int[n];
        int[] time = new int[n];
        for (int i = 0; i < n; i++) {
            cost[i] = Integer.parseInt(sc.next());
            time[i] = Integer.parseInt(sc.next());
        }
        int ans = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            if (time[i] <= t) {
                if (cost[i] < ans) {
                    ans = cost[i];
                }
            }
        }
        if (ans == Integer.MAX_VALUE) {
            System.out.println("TLE");
        } else {
            System.out.println(ans);
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());
        int[] cost = new int[n];
        int[] time = new int[n];
        for (int i = 0; i < n; i++) {
            cost[i] = Integer.parseInt(sc.next());
            time[i] = Integer.parseInt(sc.next());
        }
        int ans = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            if (time[i] <= t) {
                if (cost[i] < ans) {
                    ans = cost[i];
                }
            }
        }
        if (ans == Integer.MAX_VALUE) {
            System.out.println("TLE");
        } else {
            System.out.println(ans);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());
        int[] cost = new int[n];
        int[] time = new int[n];
        for (int i = 0; i < n; i++) {
            cost[i] = Integer.parseInt(sc.next());
            time[i] = Integer.parseInt(sc.next());
        }
        int ans = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            if (time[i] <= t) {
                if (cost[i] < ans) {
                    ans = cost[i];
                }
            }
        }
        if (ans == Integer.MAX_VALUE) {
            System.out.println("TLE");
        } else {
            System.out.println(ans);
        }
    } 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[] 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] = Integer.parseInt(sc.next());
            time[i] = Integer.parseInt(sc.next());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            cost[i] = Integer.parseInt(sc.next());
            time[i] = Integer.parseInt(sc.next());
        } {
            cost[i] = Integer.parseInt(sc.next());
            time[i] = Integer.parseInt(sc.next());
        } cost[i] = Integer.parseInt(sc.next()) cost[i] cost i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc time[i] = Integer.parseInt(sc.next()) time[i] time i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int ans = Integer.MAX_VALUE; ans Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < n; i++) {
            if (time[i] <= t) {
                if (cost[i] < ans) {
                    ans = cost[i];
                }
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            if (time[i] <= t) {
                if (cost[i] < ans) {
                    ans = cost[i];
                }
            }
        } {
            if (time[i] <= t) {
                if (cost[i] < ans) {
                    ans = cost[i];
                }
            }
        } if (time[i] <= t) {
                if (cost[i] < ans) {
                    ans = cost[i];
                }
            } time[i] <= t time[i] time i t {
                if (cost[i] < ans) {
                    ans = cost[i];
                }
            } if (cost[i] < ans) {
                    ans = cost[i];
                } cost[i] < ans cost[i] cost i ans {
                    ans = cost[i];
                } ans = cost[i] ans cost[i] cost i if (ans == Integer.MAX_VALUE) {
            System.out.println("TLE");
        } else {
            System.out.println(ans);
        } ans == Integer.MAX_VALUE ans Integer.MAX_VALUE Integer Integer.MAX_VALUE {
            System.out.println("TLE");
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
            System.out.println(ans);
        } 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) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());
        int[] cost = new int[n];
        int[] time = new int[n];
        for (int i = 0; i < n; i++) {
            cost[i] = Integer.parseInt(sc.next());
            time[i] = Integer.parseInt(sc.next());
        }
        int ans = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            if (time[i] <= t) {
                if (cost[i] < ans) {
                    ans = cost[i];
                }
            }
        }
        if (ans == Integer.MAX_VALUE) {
            System.out.println("TLE");
        } else {
            System.out.println(ans);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());
        int[] cost = new int[n];
        int[] time = new int[n];
        for (int i = 0; i < n; i++) {
            cost[i] = Integer.parseInt(sc.next());
            time[i] = Integer.parseInt(sc.next());
        }
        int ans = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            if (time[i] <= t) {
                if (cost[i] < ans) {
                    ans = cost[i];
                }
            }
        }
        if (ans == Integer.MAX_VALUE) {
            System.out.println("TLE");
        } else {
            System.out.println(ans);
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());
        int[] cost = new int[n];
        int[] time = new int[n];
        for (int i = 0; i < n; i++) {
            cost[i] = Integer.parseInt(sc.next());
            time[i] = Integer.parseInt(sc.next());
        }
        int ans = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            if (time[i] <= t) {
                if (cost[i] < ans) {
                    ans = cost[i];
                }
            }
        }
        if (ans == Integer.MAX_VALUE) {
            System.out.println("TLE");
        } else {
            System.out.println(ans);
        }
    }
}
