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

    } main {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        String [] S1 = S.split("/",0);
        int year,month,day;
         year = Integer.parseInt(S1[0]);
         month = Integer.parseInt(S1[1]);
         day = Integer.parseInt(S1[2]);
        if(month>=5) 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 [] S1 = S.split("/",0); S1 S.split("/",0) S.split S "/" 0 int year year month month day; day year = Integer.parseInt(S1[0]) year Integer.parseInt(S1[0]) Integer.parseInt Integer S1[0] S1 0 month = Integer.parseInt(S1[1]) month Integer.parseInt(S1[1]) Integer.parseInt Integer S1[1] S1 1 day = Integer.parseInt(S1[2]) day Integer.parseInt(S1[2]) Integer.parseInt Integer S1[2] S1 2 if(month>=5) System.out.println("TBD");
        else System.out.println("Heisei"); month>=5 month 5 System.out.println("TBD") System.out.println System.out System System.out "TBD" 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 [] S1 = S.split("/",0);
        int year,month,day;
         year = Integer.parseInt(S1[0]);
         month = Integer.parseInt(S1[1]);
         day = Integer.parseInt(S1[2]);
        if(month>=5) 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 [] S1 = S.split("/",0);
        int year,month,day;
         year = Integer.parseInt(S1[0]);
         month = Integer.parseInt(S1[1]);
         day = Integer.parseInt(S1[2]);
        if(month>=5) 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.nextLine();
        String [] S1 = S.split("/",0);
        int year,month,day;
         year = Integer.parseInt(S1[0]);
         month = Integer.parseInt(S1[1]);
         day = Integer.parseInt(S1[2]);
        if(month>=5) System.out.println("TBD");
        else System.out.println("Heisei");

    }
}