import java.util.Scanner;

public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        int date = Integer.parseInt(String.join("", S.split("/")));
        System.out.println(date <= 20190430 ? "Heisei" : "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.nextLine();
        int date = Integer.parseInt(String.join("", S.split("/")));
        System.out.println(date <= 20190430 ? "Heisei" : "TBD");
    }
} Main public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        int date = Integer.parseInt(String.join("", S.split("/")));
        System.out.println(date <= 20190430 ? "Heisei" : "TBD");
    } main {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        int date = Integer.parseInt(String.join("", S.split("/")));
        System.out.println(date <= 20190430 ? "Heisei" : "TBD");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.nextLine(); S sc.nextLine() sc.nextLine sc int date = Integer.parseInt(String.join("", S.split("/"))); date Integer.parseInt(String.join("", S.split("/"))) Integer.parseInt Integer String.join("", S.split("/")) String.join String "" S.split("/") S.split S "/" System.out.println(date <= 20190430 ? "Heisei" : "TBD") System.out.println System.out System System.out date <= 20190430 ? "Heisei" : "TBD" date <= 20190430 date 20190430 "Heisei" "TBD" String args[] args public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        int date = Integer.parseInt(String.join("", S.split("/")));
        System.out.println(date <= 20190430 ? "Heisei" : "TBD");
    }
} public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        int date = Integer.parseInt(String.join("", S.split("/")));
        System.out.println(date <= 20190430 ? "Heisei" : "TBD");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        int date = Integer.parseInt(String.join("", S.split("/")));
        System.out.println(date <= 20190430 ? "Heisei" : "TBD");
    }
}
