import java.util.Scanner;

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

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

		if (s[1].equals("04") || s[1].equals("01") || s[1].equals("02") || s[1].equals("03")) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	}
} 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();
		String s[] = S.split("/");

		if (s[1].equals("04") || s[1].equals("01") || s[1].equals("02") || s[1].equals("03")) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

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

		if (s[1].equals("04") || s[1].equals("01") || s[1].equals("02") || s[1].equals("03")) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	} main {
		Scanner sc = new Scanner(System.in);

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

		if (s[1].equals("04") || s[1].equals("01") || s[1].equals("02") || s[1].equals("03")) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String s[] = S.split("/"); s S.split("/") S.split S "/" if (s[1].equals("04") || s[1].equals("01") || s[1].equals("02") || s[1].equals("03")) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		} s[1].equals("04") || s[1].equals("01") || s[1].equals("02") || s[1].equals("03") s[1].equals("02") s[1].equals("04") || s[1].equals("01") || s[1].equals("02") || s[1].equals("03") s[1].equals("04") s[1].equals s[1] s 1 "04" s[1].equals("01") s[1].equals s[1] s 1 "01" s[1].equals("02") s[1].equals s[1] s 1 "02" s[1].equals("03") s[1].equals s[1] s 1 "03" {
			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 public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

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

		if (s[1].equals("04") || s[1].equals("01") || s[1].equals("02") || s[1].equals("03")) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

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

		if (s[1].equals("04") || s[1].equals("01") || s[1].equals("02") || s[1].equals("03")) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	}
} Main
import java.util.Scanner;

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

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

		if (s[1].equals("04") || s[1].equals("01") || s[1].equals("02") || s[1].equals("03")) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	}
}