import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String[] S = sc.next().split("/");

		System.out.println(Integer.parseInt(S[1]) > 4 ? "TBD" : "Heisei");
	}

} 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.next().split("/");

		System.out.println(Integer.parseInt(S[1]) > 4 ? "TBD" : "Heisei");
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String[] S = sc.next().split("/");

		System.out.println(Integer.parseInt(S[1]) > 4 ? "TBD" : "Heisei");
	} main {
		Scanner sc = new Scanner(System.in);

		String[] S = sc.next().split("/");

		System.out.println(Integer.parseInt(S[1]) > 4 ? "TBD" : "Heisei");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] S = sc.next().split("/"); S sc.next().split("/") sc.next().split sc.next() sc.next sc "/" System.out.println(Integer.parseInt(S[1]) > 4 ? "TBD" : "Heisei") System.out.println System.out System System.out Integer.parseInt(S[1]) > 4 ? "TBD" : "Heisei" Integer.parseInt(S[1]) > 4 Integer.parseInt(S[1]) Integer.parseInt Integer S[1] S 1 4 "TBD" "Heisei" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String[] S = sc.next().split("/");

		System.out.println(Integer.parseInt(S[1]) > 4 ? "TBD" : "Heisei");
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String[] S = sc.next().split("/");

		System.out.println(Integer.parseInt(S[1]) > 4 ? "TBD" : "Heisei");
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String[] S = sc.next().split("/");

		System.out.println(Integer.parseInt(S[1]) > 4 ? "TBD" : "Heisei");
	}

}