import java.util.Scanner;

public class Main {
  public static void main (String[] args) {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      int N = in.nextInt();
      int T = in.nextInt();
      int minCost = Integer.MAX_VALUE;

      while (N-- > 0) {
        int c = in.nextInt();
        int t = in.nextInt();

        if (t <= T) {
          minCost = Math.min(minCost, c);
        }
      }

      if (minCost == Integer.MAX_VALUE) {
        System.out.println("TLE");
      } else {
        System.out.println(minCost);
      }
    }
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main (String[] args) {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      int N = in.nextInt();
      int T = in.nextInt();
      int minCost = Integer.MAX_VALUE;

      while (N-- > 0) {
        int c = in.nextInt();
        int t = in.nextInt();

        if (t <= T) {
          minCost = Math.min(minCost, c);
        }
      }

      if (minCost == Integer.MAX_VALUE) {
        System.out.println("TLE");
      } else {
        System.out.println(minCost);
      }
    }
  }
} Main public static void main (String[] args) {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      int N = in.nextInt();
      int T = in.nextInt();
      int minCost = Integer.MAX_VALUE;

      while (N-- > 0) {
        int c = in.nextInt();
        int t = in.nextInt();

        if (t <= T) {
          minCost = Math.min(minCost, c);
        }
      }

      if (minCost == Integer.MAX_VALUE) {
        System.out.println("TLE");
      } else {
        System.out.println(minCost);
      }
    }
  } main {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      int N = in.nextInt();
      int T = in.nextInt();
      int minCost = Integer.MAX_VALUE;

      while (N-- > 0) {
        int c = in.nextInt();
        int t = in.nextInt();

        if (t <= T) {
          minCost = Math.min(minCost, c);
        }
      }

      if (minCost == Integer.MAX_VALUE) {
        System.out.println("TLE");
      } else {
        System.out.println(minCost);
      }
    }
  } Scanner in = new Scanner(System.in); in new Scanner(System.in) while (in.hasNext()) {
      int N = in.nextInt();
      int T = in.nextInt();
      int minCost = Integer.MAX_VALUE;

      while (N-- > 0) {
        int c = in.nextInt();
        int t = in.nextInt();

        if (t <= T) {
          minCost = Math.min(minCost, c);
        }
      }

      if (minCost == Integer.MAX_VALUE) {
        System.out.println("TLE");
      } else {
        System.out.println(minCost);
      }
    } in.hasNext() in.hasNext in {
      int N = in.nextInt();
      int T = in.nextInt();
      int minCost = Integer.MAX_VALUE;

      while (N-- > 0) {
        int c = in.nextInt();
        int t = in.nextInt();

        if (t <= T) {
          minCost = Math.min(minCost, c);
        }
      }

      if (minCost == Integer.MAX_VALUE) {
        System.out.println("TLE");
      } else {
        System.out.println(minCost);
      }
    } int N = in.nextInt(); N in.nextInt() in.nextInt in int T = in.nextInt(); T in.nextInt() in.nextInt in int minCost = Integer.MAX_VALUE; minCost Integer.MAX_VALUE Integer Integer.MAX_VALUE while (N-- > 0) {
        int c = in.nextInt();
        int t = in.nextInt();

        if (t <= T) {
          minCost = Math.min(minCost, c);
        }
      } N-- > 0 N-- N 0 {
        int c = in.nextInt();
        int t = in.nextInt();

        if (t <= T) {
          minCost = Math.min(minCost, c);
        }
      } int c = in.nextInt(); c in.nextInt() in.nextInt in int t = in.nextInt(); t in.nextInt() in.nextInt in if (t <= T) {
          minCost = Math.min(minCost, c);
        } t <= T t T {
          minCost = Math.min(minCost, c);
        } minCost = Math.min(minCost, c) minCost Math.min(minCost, c) Math.min Math minCost c if (minCost == Integer.MAX_VALUE) {
        System.out.println("TLE");
      } else {
        System.out.println(minCost);
      } minCost == Integer.MAX_VALUE minCost Integer.MAX_VALUE Integer Integer.MAX_VALUE {
        System.out.println("TLE");
      } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
        System.out.println(minCost);
      } System.out.println(minCost) System.out.println System.out System System.out minCost String[] args args public class Main {
  public static void main (String[] args) {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      int N = in.nextInt();
      int T = in.nextInt();
      int minCost = Integer.MAX_VALUE;

      while (N-- > 0) {
        int c = in.nextInt();
        int t = in.nextInt();

        if (t <= T) {
          minCost = Math.min(minCost, c);
        }
      }

      if (minCost == Integer.MAX_VALUE) {
        System.out.println("TLE");
      } else {
        System.out.println(minCost);
      }
    }
  }
} public class Main {
  public static void main (String[] args) {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      int N = in.nextInt();
      int T = in.nextInt();
      int minCost = Integer.MAX_VALUE;

      while (N-- > 0) {
        int c = in.nextInt();
        int t = in.nextInt();

        if (t <= T) {
          minCost = Math.min(minCost, c);
        }
      }

      if (minCost == Integer.MAX_VALUE) {
        System.out.println("TLE");
      } else {
        System.out.println(minCost);
      }
    }
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main (String[] args) {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      int N = in.nextInt();
      int T = in.nextInt();
      int minCost = Integer.MAX_VALUE;

      while (N-- > 0) {
        int c = in.nextInt();
        int t = in.nextInt();

        if (t <= T) {
          minCost = Math.min(minCost, c);
        }
      }

      if (minCost == Integer.MAX_VALUE) {
        System.out.println("TLE");
      } else {
        System.out.println(minCost);
      }
    }
  }
}