import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main
{

  public static void main
  (
    String[] args
  )
  {
    BufferedReader in_stream;
    String         in_str;
    String[]       in_str_split;

    int in_N;
    int in_T;

    int c;
    int t;
    int cnt;
    int ans;

    ans = 9999;

    try
    {
      in_stream = new BufferedReader(new InputStreamReader(System.in));

      /*----------------
       * 引数
       *----------------*/
      in_str       = new String(in_stream.readLine());
      in_str_split = in_str.split(" ");
      in_N         = Integer.parseInt(in_str_split[0]);
      in_T         = Integer.parseInt(in_str_split[1]);

      for(cnt=0; cnt<in_N; cnt++)
      {
        in_str       = new String(in_stream.readLine());
        in_str_split = in_str.split(" ");
        c            = Integer.parseInt(in_str_split[0]);
        t            = Integer.parseInt(in_str_split[1]);

        if(t <= in_T)
        {
          if(c < ans)
          {
            ans = c;
          }
        }
      }

      /*----------------
       * 計算
       *----------------*/
      if(9999 == ans)
      {
        System.out.println("TLE");
      }
      else
      {
        System.out.println(String.valueOf(ans));
      }
    }
    catch(Exception e)
    {
      e.printStackTrace();
    }
  }
}

/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz