fun main (args : Array<String>) {
	val (n, t1) = readLine()!!.split(" ")
	val N : Int = n.toInt()
	val T : Int = t1.toInt()
	var cList : MutableList<Int> = mutableListOf()
	var tList : MutableList<Int> = mutableListOf()
	var calc : Int
	var result : Int = 0
	for (i in 0..N - 1) {
		val (c, t2) = readLine()!!.split(" ")
		cList.add(c.toInt())
		tList.add(t2.toInt())
	}
	for (i in 0..N - 1) {
		if (tList[i] <= T) {
			calc = cList[i]
			if (result == 0) {
				result = cList[i]
			}
			if (result > calc) {
				result = calc
			}
		}
	}
	return if (result != 0) {
		println("${result}")
	} else {
		println("TLE")
	}
}