import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] s = sc.next().split("/");
		if(Integer.parseInt(s[1]) > 4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}

		sc.close();
	}
} 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("/");
		if(Integer.parseInt(s[1]) > 4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}

		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] s = sc.next().split("/");
		if(Integer.parseInt(s[1]) > 4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}

		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		String[] s = sc.next().split("/");
		if(Integer.parseInt(s[1]) > 4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}

		sc.close();
	} 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 "/" if(Integer.parseInt(s[1]) > 4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		} Integer.parseInt(s[1]) > 4 Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 4 {
			System.out.println("TBD");
		} System.out.println("TBD") System.out.println System.out System System.out "TBD" {
			System.out.println("Heisei");
		} System.out.println("Heisei") System.out.println System.out System System.out "Heisei" sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] s = sc.next().split("/");
		if(Integer.parseInt(s[1]) > 4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}

		sc.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] s = sc.next().split("/");
		if(Integer.parseInt(s[1]) > 4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}

		sc.close();
	}
} 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("/");
		if(Integer.parseInt(s[1]) > 4) {
			System.out.println("TBD");
		}else {
			System.out.println("Heisei");
		}

		sc.close();
	}
}