import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int number = Integer.parseInt(S.replaceAll("/", ""));
        sc.close();

        if (number > 20190430) {
            System.out.println("TBD");
        }
        else {
            System.out.println("Heisei");
        }
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int number = Integer.parseInt(S.replaceAll("/", ""));
        sc.close();

        if (number > 20190430) {
            System.out.println("TBD");
        }
        else {
            System.out.println("Heisei");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int number = Integer.parseInt(S.replaceAll("/", ""));
        sc.close();

        if (number > 20190430) {
            System.out.println("TBD");
        }
        else {
            System.out.println("Heisei");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int number = Integer.parseInt(S.replaceAll("/", ""));
        sc.close();

        if (number > 20190430) {
            System.out.println("TBD");
        }
        else {
            System.out.println("Heisei");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc int number = Integer.parseInt(S.replaceAll("/", "")); number Integer.parseInt(S.replaceAll("/", "")) Integer.parseInt Integer S.replaceAll("/", "") S.replaceAll S "/" "" sc.close() sc.close sc if (number > 20190430) {
            System.out.println("TBD");
        }
        else {
            System.out.println("Heisei");
        } number > 20190430 number 20190430 {
            System.out.println("TBD");
        } System.out.println("TBD") System.out.println System.out System System.out "TBD" {
            System.out.println("Heisei");
        } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int number = Integer.parseInt(S.replaceAll("/", ""));
        sc.close();

        if (number > 20190430) {
            System.out.println("TBD");
        }
        else {
            System.out.println("Heisei");
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int number = Integer.parseInt(S.replaceAll("/", ""));
        sc.close();

        if (number > 20190430) {
            System.out.println("TBD");
        }
        else {
            System.out.println("Heisei");
        }
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        int number = Integer.parseInt(S.replaceAll("/", ""));
        sc.close();

        if (number > 20190430) {
            System.out.println("TBD");
        }
        else {
            System.out.println("Heisei");
        }
    }
}