import std.stdio;
import std.conv;
import std.string;
import std.algorithm;

void main() {
    ulong[] nt = readln.split.to!(ulong[]);
    ulong[][] ct;

    foreach(_; 0..nt[0]) {
        ulong[] i = readln.chomp.split.to!(ulong[]);
        ct ~= i;
    }
    ct.sort!("a[0] < b[0]");
    foreach(c; ct) {
        if (c[1] <= nt[1]) {
            c[0].writeln;
            return;
        }
    }
    "TLE".writeln;
}
