import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        sc.close();

        String month = s.substring(5, 7);
        if (month.equals("01") || month.equals("02") || month.equals("03") || month.equals("04")) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        sc.close();

        String month = s.substring(5, 7);
        if (month.equals("01") || month.equals("02") || month.equals("03") || month.equals("04")) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        sc.close();

        String month = s.substring(5, 7);
        if (month.equals("01") || month.equals("02") || month.equals("03") || month.equals("04")) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        sc.close();

        String month = s.substring(5, 7);
        if (month.equals("01") || month.equals("02") || month.equals("03") || month.equals("04")) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc sc.close() sc.close sc String month = s.substring(5, 7); month s.substring(5, 7) s.substring s 5 7 if (month.equals("01") || month.equals("02") || month.equals("03") || month.equals("04")) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        } month.equals("01") || month.equals("02") || month.equals("03") || month.equals("04") month.equals("03") month.equals("01") || month.equals("02") || month.equals("03") || month.equals("04") month.equals("01") month.equals month "01" month.equals("02") month.equals month "02" month.equals("03") month.equals month "03" month.equals("04") month.equals month "04" {
            System.out.println("Heisei");
        } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" {
            System.out.println("TBD");
        } System.out.println("TBD") System.out.println System.out System System.out "TBD" String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        sc.close();

        String month = s.substring(5, 7);
        if (month.equals("01") || month.equals("02") || month.equals("03") || month.equals("04")) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        sc.close();

        String month = s.substring(5, 7);
        if (month.equals("01") || month.equals("02") || month.equals("03") || month.equals("04")) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        sc.close();

        String month = s.substring(5, 7);
        if (month.equals("01") || month.equals("02") || month.equals("03") || month.equals("04")) {
            System.out.println("Heisei");
        } else {
            System.out.println("TBD");
        }
    }

}
