import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s1 = sc.next();
		String s2 = s1.replace("/", "");
		sc.close();
		if (s2.compareTo("20190430") <= 0) {
			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 s1 = sc.next();
		String s2 = s1.replace("/", "");
		sc.close();
		if (s2.compareTo("20190430") <= 0) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s1 = sc.next();
		String s2 = s1.replace("/", "");
		sc.close();
		if (s2.compareTo("20190430") <= 0) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String s1 = sc.next();
		String s2 = s1.replace("/", "");
		sc.close();
		if (s2.compareTo("20190430") <= 0) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s1 = sc.next(); s1 sc.next() sc.next sc String s2 = s1.replace("/", ""); s2 s1.replace("/", "") s1.replace s1 "/" "" sc.close() sc.close sc if (s2.compareTo("20190430") <= 0) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		} s2.compareTo("20190430") <= 0 s2.compareTo("20190430") s2.compareTo s2 "20190430" 0 {
			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 s1 = sc.next();
		String s2 = s1.replace("/", "");
		sc.close();
		if (s2.compareTo("20190430") <= 0) {
			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 s1 = sc.next();
		String s2 = s1.replace("/", "");
		sc.close();
		if (s2.compareTo("20190430") <= 0) {
			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 s1 = sc.next();
		String s2 = s1.replace("/", "");
		sc.close();
		if (s2.compareTo("20190430") <= 0) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	}
}
