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

public class Main
{

  public static void main(String[] args) throws IOException
  {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);

    String s = r.readLine();
    String sl[] = s.split(" ");

    int n = Integer.parseInt(sl[0]);
    int t = Integer.parseInt(sl[1]);
    
    int m = 9999;
    
    for(int i = 0; i < n; i++)
    {
      s = r.readLine();
      sl = s.split(" ");

      int c = Integer.parseInt(sl[0]);
      int v = Integer.parseInt(sl[1]);
      
      if(v <= t && c < m)
      {
        m = c;
      }
      
    }
    System.out.println(m < 9999 ? m : "TLE");
  }

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main
{

  public static void main(String[] args) throws IOException
  {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);

    String s = r.readLine();
    String sl[] = s.split(" ");

    int n = Integer.parseInt(sl[0]);
    int t = Integer.parseInt(sl[1]);
    
    int m = 9999;
    
    for(int i = 0; i < n; i++)
    {
      s = r.readLine();
      sl = s.split(" ");

      int c = Integer.parseInt(sl[0]);
      int v = Integer.parseInt(sl[1]);
      
      if(v <= t && c < m)
      {
        m = c;
      }
      
    }
    System.out.println(m < 9999 ? m : "TLE");
  }

} Main public static void main(String[] args) throws IOException
  {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);

    String s = r.readLine();
    String sl[] = s.split(" ");

    int n = Integer.parseInt(sl[0]);
    int t = Integer.parseInt(sl[1]);
    
    int m = 9999;
    
    for(int i = 0; i < n; i++)
    {
      s = r.readLine();
      sl = s.split(" ");

      int c = Integer.parseInt(sl[0]);
      int v = Integer.parseInt(sl[1]);
      
      if(v <= t && c < m)
      {
        m = c;
      }
      
    }
    System.out.println(m < 9999 ? m : "TLE");
  } main {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);

    String s = r.readLine();
    String sl[] = s.split(" ");

    int n = Integer.parseInt(sl[0]);
    int t = Integer.parseInt(sl[1]);
    
    int m = 9999;
    
    for(int i = 0; i < n; i++)
    {
      s = r.readLine();
      sl = s.split(" ");

      int c = Integer.parseInt(sl[0]);
      int v = Integer.parseInt(sl[1]);
      
      if(v <= t && c < m)
      {
        m = c;
      }
      
    }
    System.out.println(m < 9999 ? m : "TLE");
  } BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1); r new BufferedReader(new InputStreamReader(System.in), 1) String s = r.readLine(); s r.readLine() r.readLine r String sl[] = s.split(" "); sl s.split(" ") s.split s " " int n = Integer.parseInt(sl[0]); n Integer.parseInt(sl[0]) Integer.parseInt Integer sl[0] sl 0 int t = Integer.parseInt(sl[1]); t Integer.parseInt(sl[1]) Integer.parseInt Integer sl[1] sl 1 int m = 9999; m 9999 for(int i = 0; i < n; i++)
    {
      s = r.readLine();
      sl = s.split(" ");

      int c = Integer.parseInt(sl[0]);
      int v = Integer.parseInt(sl[1]);
      
      if(v <= t && c < m)
      {
        m = c;
      }
      
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      s = r.readLine();
      sl = s.split(" ");

      int c = Integer.parseInt(sl[0]);
      int v = Integer.parseInt(sl[1]);
      
      if(v <= t && c < m)
      {
        m = c;
      }
      
    } {
      s = r.readLine();
      sl = s.split(" ");

      int c = Integer.parseInt(sl[0]);
      int v = Integer.parseInt(sl[1]);
      
      if(v <= t && c < m)
      {
        m = c;
      }
      
    } s = r.readLine() s r.readLine() r.readLine r sl = s.split(" ") sl s.split(" ") s.split s " " int c = Integer.parseInt(sl[0]); c Integer.parseInt(sl[0]) Integer.parseInt Integer sl[0] sl 0 int v = Integer.parseInt(sl[1]); v Integer.parseInt(sl[1]) Integer.parseInt Integer sl[1] sl 1 if(v <= t && c < m)
      {
        m = c;
      } v <= t && c < m v <= t v t c < m c m {
        m = c;
      } m = c m c System.out.println(m < 9999 ? m : "TLE") System.out.println System.out System System.out m < 9999 ? m : "TLE" m < 9999 m 9999 m "TLE" String[] args args public class Main
{

  public static void main(String[] args) throws IOException
  {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);

    String s = r.readLine();
    String sl[] = s.split(" ");

    int n = Integer.parseInt(sl[0]);
    int t = Integer.parseInt(sl[1]);
    
    int m = 9999;
    
    for(int i = 0; i < n; i++)
    {
      s = r.readLine();
      sl = s.split(" ");

      int c = Integer.parseInt(sl[0]);
      int v = Integer.parseInt(sl[1]);
      
      if(v <= t && c < m)
      {
        m = c;
      }
      
    }
    System.out.println(m < 9999 ? m : "TLE");
  }

} public class Main
{

  public static void main(String[] args) throws IOException
  {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);

    String s = r.readLine();
    String sl[] = s.split(" ");

    int n = Integer.parseInt(sl[0]);
    int t = Integer.parseInt(sl[1]);
    
    int m = 9999;
    
    for(int i = 0; i < n; i++)
    {
      s = r.readLine();
      sl = s.split(" ");

      int c = Integer.parseInt(sl[0]);
      int v = Integer.parseInt(sl[1]);
      
      if(v <= t && c < m)
      {
        m = c;
      }
      
    }
    System.out.println(m < 9999 ? m : "TLE");
  }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main
{

  public static void main(String[] args) throws IOException
  {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);

    String s = r.readLine();
    String sl[] = s.split(" ");

    int n = Integer.parseInt(sl[0]);
    int t = Integer.parseInt(sl[1]);
    
    int m = 9999;
    
    for(int i = 0; i < n; i++)
    {
      s = r.readLine();
      sl = s.split(" ");

      int c = Integer.parseInt(sl[0]);
      int v = Integer.parseInt(sl[1]);
      
      if(v <= t && c < m)
      {
        m = c;
      }
      
    }
    System.out.println(m < 9999 ? m : "TLE");
  }

}