import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        String[] s = S.split("/");
        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int day = Integer.parseInt(s[2]);
        if (month>4) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    }
} 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.nextLine();
        String[] s = S.split("/");
        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int day = Integer.parseInt(s[2]);
        if (month>4) {
            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.nextLine();
        String[] s = S.split("/");
        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int day = Integer.parseInt(s[2]);
        if (month>4) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        String[] s = S.split("/");
        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int day = Integer.parseInt(s[2]);
        if (month>4) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.nextLine(); S sc.nextLine() sc.nextLine sc String[] s = S.split("/"); s S.split("/") S.split S "/" int year = Integer.parseInt(s[0]); year Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 int month = Integer.parseInt(s[1]); month Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 int day = Integer.parseInt(s[2]); day Integer.parseInt(s[2]) Integer.parseInt Integer s[2] s 2 if (month>4) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        } month>4 month 4 {
            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.nextLine();
        String[] s = S.split("/");
        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int day = Integer.parseInt(s[2]);
        if (month>4) {
            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.nextLine();
        String[] s = S.split("/");
        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int day = Integer.parseInt(s[2]);
        if (month>4) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        String[] s = S.split("/");
        int year = Integer.parseInt(s[0]);
        int month = Integer.parseInt(s[1]);
        int day = Integer.parseInt(s[2]);
        if (month>4) {
            System.out.println("TBD");
        } else {
            System.out.println("Heisei");
        }
    }
}
