import std.algorithm;
import std.array;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

T read(T)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readint = read!int;
alias readints = reads!int;

void main() {
    auto nt = readints;
    int n = nt[0], t = nt[1];

    int ans = int.max;
    for (int i = 0; i < n; i++) {
        auto ct = readints;
        if (ct[1] <= t) {
            ans = min(ans, ct[0]);
        }
    }

    if (ans == int.max)
        writeln("TLE");
    else
        writeln(ans);
}
