import java.util.Scanner;

public class Main {
	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		prtln("2019/04/30".compareTo(S) >= 0 ? "Heisei" : "TBD");
	}
	public static <T> void prtln(T t) { System.out.println(t); }
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		prtln("2019/04/30".compareTo(S) >= 0 ? "Heisei" : "TBD");
	}
	public static <T> void prtln(T t) { System.out.println(t); }
} Main public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		prtln("2019/04/30".compareTo(S) >= 0 ? "Heisei" : "TBD");
	} main {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		prtln("2019/04/30".compareTo(S) >= 0 ? "Heisei" : "TBD");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc sc.close() sc.close sc prtln("2019/04/30".compareTo(S) >= 0 ? "Heisei" : "TBD") prtln "2019/04/30".compareTo(S) >= 0 ? "Heisei" : "TBD" "2019/04/30".compareTo(S) >= 0 "2019/04/30".compareTo(S) "2019/04/30".compareTo "2019/04/30" S 0 "Heisei" "TBD" final String[] args args public static <T> void prtln(T t) { System.out.println(t); } prtln { System.out.println(t); } System.out.println(t) System.out.println System.out System System.out t T t t public class Main {
	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		prtln("2019/04/30".compareTo(S) >= 0 ? "Heisei" : "TBD");
	}
	public static <T> void prtln(T t) { System.out.println(t); }
} public class Main {
	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		prtln("2019/04/30".compareTo(S) >= 0 ? "Heisei" : "TBD");
	}
	public static <T> void prtln(T t) { System.out.println(t); }
} Main
import java.util.Scanner;

public class Main {
	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		prtln("2019/04/30".compareTo(S) >= 0 ? "Heisei" : "TBD");
	}
	public static <T> void prtln(T t) { System.out.println(t); }
}