'use strict'

function main(input) {
  input = input.split(/\n|\s/).map(v => ~~v)
  const n = input.shift()
  const T = input.shift()

  let mincost

  while (input.length >= 1) {
    let c = input.shift()
    let t = input.shift()
    if (t <= T) {
      mincost = mincost ? Math.min(mincost, c) : c
    }
  }
  if (mincost) {
    console.log(mincost)
  } else {
    console.log('TLE')
  }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'))