import java.util.Scanner;

public class Main {

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

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

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

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

public class Main {

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