import java.util.Scanner;

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

        int min_cost=-1;
        for( int i=0; i< count; i++ ) {
            int n = scanner.nextInt();
            int t = scanner.nextInt();
            if( t <= time ) {
                if( min_cost == -1 || min_cost > n )
                min_cost = n;
            }
        }
        if( min_cost == -1 ) {
            System.out.println("TLE");
        } else {
            System.out.println(min_cost);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int count = scanner.nextInt();
        int time = scanner.nextInt();

        int min_cost=-1;
        for( int i=0; i< count; i++ ) {
            int n = scanner.nextInt();
            int t = scanner.nextInt();
            if( t <= time ) {
                if( min_cost == -1 || min_cost > n )
                min_cost = n;
            }
        }
        if( min_cost == -1 ) {
            System.out.println("TLE");
        } else {
            System.out.println(min_cost);
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int count = scanner.nextInt();
        int time = scanner.nextInt();

        int min_cost=-1;
        for( int i=0; i< count; i++ ) {
            int n = scanner.nextInt();
            int t = scanner.nextInt();
            if( t <= time ) {
                if( min_cost == -1 || min_cost > n )
                min_cost = n;
            }
        }
        if( min_cost == -1 ) {
            System.out.println("TLE");
        } else {
            System.out.println(min_cost);
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        int count = scanner.nextInt();
        int time = scanner.nextInt();

        int min_cost=-1;
        for( int i=0; i< count; i++ ) {
            int n = scanner.nextInt();
            int t = scanner.nextInt();
            if( t <= time ) {
                if( min_cost == -1 || min_cost > n )
                min_cost = n;
            }
        }
        if( min_cost == -1 ) {
            System.out.println("TLE");
        } else {
            System.out.println(min_cost);
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int count = scanner.nextInt(); count scanner.nextInt() scanner.nextInt scanner int time = scanner.nextInt(); time scanner.nextInt() scanner.nextInt scanner int min_cost=-1; min_cost -1 1 for( int i=0; i< count; i++ ) {
            int n = scanner.nextInt();
            int t = scanner.nextInt();
            if( t <= time ) {
                if( min_cost == -1 || min_cost > n )
                min_cost = n;
            }
        } int i=0; int i=0; i 0 i< count i count i++ i++ i {
            int n = scanner.nextInt();
            int t = scanner.nextInt();
            if( t <= time ) {
                if( min_cost == -1 || min_cost > n )
                min_cost = n;
            }
        } {
            int n = scanner.nextInt();
            int t = scanner.nextInt();
            if( t <= time ) {
                if( min_cost == -1 || min_cost > n )
                min_cost = n;
            }
        } int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int t = scanner.nextInt(); t scanner.nextInt() scanner.nextInt scanner if( t <= time ) {
                if( min_cost == -1 || min_cost > n )
                min_cost = n;
            } t <= time t time {
                if( min_cost == -1 || min_cost > n )
                min_cost = n;
            } if( min_cost == -1 || min_cost > n )
                min_cost = n; min_cost == -1 || min_cost > n min_cost == -1 min_cost -1 1 min_cost > n min_cost n min_cost = n min_cost n if( min_cost == -1 ) {
            System.out.println("TLE");
        } else {
            System.out.println(min_cost);
        } min_cost == -1 min_cost -1 1 {
            System.out.println("TLE");
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
            System.out.println(min_cost);
        } System.out.println(min_cost) System.out.println System.out System System.out min_cost String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int count = scanner.nextInt();
        int time = scanner.nextInt();

        int min_cost=-1;
        for( int i=0; i< count; i++ ) {
            int n = scanner.nextInt();
            int t = scanner.nextInt();
            if( t <= time ) {
                if( min_cost == -1 || min_cost > n )
                min_cost = n;
            }
        }
        if( min_cost == -1 ) {
            System.out.println("TLE");
        } else {
            System.out.println(min_cost);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int count = scanner.nextInt();
        int time = scanner.nextInt();

        int min_cost=-1;
        for( int i=0; i< count; i++ ) {
            int n = scanner.nextInt();
            int t = scanner.nextInt();
            if( t <= time ) {
                if( min_cost == -1 || min_cost > n )
                min_cost = n;
            }
        }
        if( min_cost == -1 ) {
            System.out.println("TLE");
        } else {
            System.out.println(min_cost);
        }
    }
} Main
import java.util.Scanner;

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

        int min_cost=-1;
        for( int i=0; i< count; i++ ) {
            int n = scanner.nextInt();
            int t = scanner.nextInt();
            if( t <= time ) {
                if( min_cost == -1 || min_cost > n )
                min_cost = n;
            }
        }
        if( min_cost == -1 ) {
            System.out.println("TLE");
        } else {
            System.out.println(min_cost);
        }
    }
}