import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String str = S.substring(5, 7);
		sc.close();


		int month = Integer.valueOf(str);
		if(month < 5) {
			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 str = S.substring(5, 7);
		sc.close();


		int month = Integer.valueOf(str);
		if(month < 5) {
			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 str = S.substring(5, 7);
		sc.close();


		int month = Integer.valueOf(str);
		if(month < 5) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String str = S.substring(5, 7);
		sc.close();


		int month = Integer.valueOf(str);
		if(month < 5) {
			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 str = S.substring(5, 7); str S.substring(5, 7) S.substring S 5 7 sc.close() sc.close sc int month = Integer.valueOf(str); month Integer.valueOf(str) Integer.valueOf Integer str if(month < 5) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		} month < 5 month 5 {
			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 str = S.substring(5, 7);
		sc.close();


		int month = Integer.valueOf(str);
		if(month < 5) {
			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 str = S.substring(5, 7);
		sc.close();


		int month = Integer.valueOf(str);
		if(month < 5) {
			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 str = S.substring(5, 7);
		sc.close();


		int month = Integer.valueOf(str);
		if(month < 5) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
	}
}