'use strict'

const main = input => {
	const args = input.split('\n').map(t => t.split(' '))
	const n = parseInt(args[0][0], 10)
	const t = parseInt(args[0][1], 10)
	const c = args.slice(1, n + 1).map(t1 => t1.map(t2 => parseInt(t2)))
	let min = Infinity
	
	for (let i = 0; i < n; i++) {
		if (c[i][1] > t) continue
		min = Math.min(min, c[i][0])
	}

	if (min > t) console.log('TLE')
	else console.log(min)
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'))
