'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 rows = args.slice(1, n + 1)
	let ans = Infinity
	
	for (let i = 0; i < n; i++) {
		const _c = parseInt(rows[i][0], 10)
		const _t = parseInt(rows[i][1], 10)
		if (_t > t) continue
		ans = Math.min(ans, _c)
	}

	if (ans === Infinity) console.log('TLE')
	else console.log(ans)
}

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