const main = stdin => {
  const input = stdin.trim().split('\n')
  const [N, T] = input[0].split(' ').map(x => parseInt(x))

  let minCost = 99999999
  for (let i = 0; i < N; i++) {
    const [c, t] = input[i + 1].split(' ').map(x => parseInt(x))
    if (t <= T) {
      minCost = Math.min(minCost, c)
    }
  }

  if (minCost !== 99999999) {
    console.log(minCost)
  } else {
    console.log('TLE')
  }
}


// 標準入力
main(require("fs").readFileSync("/dev/stdin", "utf8"))
