import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.next();
        String[] s = str.split("/");
        System.out.println(Integer.parseInt(s[1])<=4?"Heisei":"TBD");
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.next();
        String[] s = str.split("/");
        System.out.println(Integer.parseInt(s[1])<=4?"Heisei":"TBD");
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.next();
        String[] s = str.split("/");
        System.out.println(Integer.parseInt(s[1])<=4?"Heisei":"TBD");
    } main {
        Scanner scan = new Scanner(System.in);
        String str = scan.next();
        String[] s = str.split("/");
        System.out.println(Integer.parseInt(s[1])<=4?"Heisei":"TBD");
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.next(); str scan.next() scan.next scan String[] s = str.split("/"); s str.split("/") str.split str "/" System.out.println(Integer.parseInt(s[1])<=4?"Heisei":"TBD") System.out.println System.out System System.out Integer.parseInt(s[1])<=4?"Heisei":"TBD" Integer.parseInt(s[1])<=4 Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 4 "Heisei" "TBD" String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.next();
        String[] s = str.split("/");
        System.out.println(Integer.parseInt(s[1])<=4?"Heisei":"TBD");
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.next();
        String[] s = str.split("/");
        System.out.println(Integer.parseInt(s[1])<=4?"Heisei":"TBD");
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.next();
        String[] s = str.split("/");
        System.out.println(Integer.parseInt(s[1])<=4?"Heisei":"TBD");
    }
}
