import java.util.*;
import static java.lang.System.*;
public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(in);
	    String str = sc.next();
	    str = str.replace("/","");
	    String ans =  (Integer.valueOf(str) > 20190430)? "TBD" : "Heisei";
		out.println(ans);
	}
} import java.util.*; util.* java import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(in);
	    String str = sc.next();
	    str = str.replace("/","");
	    String ans =  (Integer.valueOf(str) > 20190430)? "TBD" : "Heisei";
		out.println(ans);
	}
} Main public static void main(String[] args) {
	    Scanner sc = new Scanner(in);
	    String str = sc.next();
	    str = str.replace("/","");
	    String ans =  (Integer.valueOf(str) > 20190430)? "TBD" : "Heisei";
		out.println(ans);
	} main {
	    Scanner sc = new Scanner(in);
	    String str = sc.next();
	    str = str.replace("/","");
	    String ans =  (Integer.valueOf(str) > 20190430)? "TBD" : "Heisei";
		out.println(ans);
	} Scanner sc = new Scanner(in); sc new Scanner(in) String str = sc.next(); str sc.next() sc.next sc str = str.replace("/","") str str.replace("/","") str.replace str "/" "" String ans =  (Integer.valueOf(str) > 20190430)? "TBD" : "Heisei"; ans (Integer.valueOf(str) > 20190430)? "TBD" : "Heisei" (Integer.valueOf(str) > 20190430) Integer.valueOf(str) Integer.valueOf Integer str 20190430 "TBD" "Heisei" out.println(ans) out.println out ans String[] args args public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(in);
	    String str = sc.next();
	    str = str.replace("/","");
	    String ans =  (Integer.valueOf(str) > 20190430)? "TBD" : "Heisei";
		out.println(ans);
	}
} public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(in);
	    String str = sc.next();
	    str = str.replace("/","");
	    String ans =  (Integer.valueOf(str) > 20190430)? "TBD" : "Heisei";
		out.println(ans);
	}
} Main
import java.util.*;
import static java.lang.System.*;
public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(in);
	    String str = sc.next();
	    str = str.replace("/","");
	    String ans =  (Integer.valueOf(str) > 20190430)? "TBD" : "Heisei";
		out.println(ans);
	}
}