import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String str = in.nextLine();
		in.close();
		
		String ans = str.charAt(5) == '1' ? "TBD"
				: str.charAt(6) > '4' ? "TBD" : "Heisei";
		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String str = in.nextLine();
		in.close();
		
		String ans = str.charAt(5) == '1' ? "TBD"
				: str.charAt(6) > '4' ? "TBD" : "Heisei";
		System.out.println(ans);
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String str = in.nextLine();
		in.close();
		
		String ans = str.charAt(5) == '1' ? "TBD"
				: str.charAt(6) > '4' ? "TBD" : "Heisei";
		System.out.println(ans);
	} main {
		Scanner in = new Scanner(System.in);
		String str = in.nextLine();
		in.close();
		
		String ans = str.charAt(5) == '1' ? "TBD"
				: str.charAt(6) > '4' ? "TBD" : "Heisei";
		System.out.println(ans);
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) String str = in.nextLine(); str in.nextLine() in.nextLine in in.close() in.close in String ans = str.charAt(5) == '1' ? "TBD"
				: str.charAt(6) > '4' ? "TBD" : "Heisei"; ans str.charAt(5) == '1' ? "TBD"
				: str.charAt(6) > '4' ? "TBD" : "Heisei" str.charAt(5) == '1' str.charAt(5) str.charAt str 5 '1' "TBD" str.charAt(6) > '4' ? "TBD" : "Heisei" str.charAt(6) > '4' str.charAt(6) str.charAt str 6 '4' "TBD" "Heisei" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String str = in.nextLine();
		in.close();
		
		String ans = str.charAt(5) == '1' ? "TBD"
				: str.charAt(6) > '4' ? "TBD" : "Heisei";
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String str = in.nextLine();
		in.close();
		
		String ans = str.charAt(5) == '1' ? "TBD"
				: str.charAt(6) > '4' ? "TBD" : "Heisei";
		System.out.println(ans);
	}
} Main
import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String str = in.nextLine();
		in.close();
		
		String ans = str.charAt(5) == '1' ? "TBD"
				: str.charAt(6) > '4' ? "TBD" : "Heisei";
		System.out.println(ans);
	}
}