import java.util.*;
class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
        String S = stdIn.next();
	String s = S.replaceAll("/","");
	int num = Integer.parseInt(s);
	if(num<=20190430){
	    System.out.println("Heisei");
	}else{
	    System.out.println("TBD");
	}
    }
}

	        import java.util.*; util.* java class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
        String S = stdIn.next();
	String s = S.replaceAll("/","");
	int num = Integer.parseInt(s);
	if(num<=20190430){
	    System.out.println("Heisei");
	}else{
	    System.out.println("TBD");
	}
    }
} Main public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
        String S = stdIn.next();
	String s = S.replaceAll("/","");
	int num = Integer.parseInt(s);
	if(num<=20190430){
	    System.out.println("Heisei");
	}else{
	    System.out.println("TBD");
	}
    } main {
	Scanner stdIn = new Scanner(System.in);
        String S = stdIn.next();
	String s = S.replaceAll("/","");
	int num = Integer.parseInt(s);
	if(num<=20190430){
	    System.out.println("Heisei");
	}else{
	    System.out.println("TBD");
	}
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) String S = stdIn.next(); S stdIn.next() stdIn.next stdIn String s = S.replaceAll("/",""); s S.replaceAll("/","") S.replaceAll S "/" "" int num = Integer.parseInt(s); num Integer.parseInt(s) Integer.parseInt Integer s if(num<=20190430){
	    System.out.println("Heisei");
	}else{
	    System.out.println("TBD");
	} num<=20190430 num 20190430 {
	    System.out.println("Heisei");
	} System.out.println("Heisei") System.out.println System.out System System.out "Heisei" {
	    System.out.println("TBD");
	} System.out.println("TBD") System.out.println System.out System System.out "TBD" String[] args args
import java.util.*;
class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
        String S = stdIn.next();
	String s = S.replaceAll("/","");
	int num = Integer.parseInt(s);
	if(num<=20190430){
	    System.out.println("Heisei");
	}else{
	    System.out.println("TBD");
	}
    }
}

	       
