import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String yyyy = S.substring(0, 4);
		String mm = S.substring(5, 7);
		String dd = S.substring(8, 10);

		if (Integer.parseInt(yyyy) >= 2019 && Integer.parseInt(mm) >= 5) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}



	}
} 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 yyyy = S.substring(0, 4);
		String mm = S.substring(5, 7);
		String dd = S.substring(8, 10);

		if (Integer.parseInt(yyyy) >= 2019 && Integer.parseInt(mm) >= 5) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}



	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String yyyy = S.substring(0, 4);
		String mm = S.substring(5, 7);
		String dd = S.substring(8, 10);

		if (Integer.parseInt(yyyy) >= 2019 && Integer.parseInt(mm) >= 5) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}



	} main {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String yyyy = S.substring(0, 4);
		String mm = S.substring(5, 7);
		String dd = S.substring(8, 10);

		if (Integer.parseInt(yyyy) >= 2019 && Integer.parseInt(mm) >= 5) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}



	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String yyyy = S.substring(0, 4); yyyy S.substring(0, 4) S.substring S 0 4 String mm = S.substring(5, 7); mm S.substring(5, 7) S.substring S 5 7 String dd = S.substring(8, 10); dd S.substring(8, 10) S.substring S 8 10 if (Integer.parseInt(yyyy) >= 2019 && Integer.parseInt(mm) >= 5) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		} Integer.parseInt(yyyy) >= 2019 && Integer.parseInt(mm) >= 5 Integer.parseInt(yyyy) >= 2019 Integer.parseInt(yyyy) Integer.parseInt Integer yyyy 2019 Integer.parseInt(mm) >= 5 Integer.parseInt(mm) Integer.parseInt Integer mm 5 {
			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" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String yyyy = S.substring(0, 4);
		String mm = S.substring(5, 7);
		String dd = S.substring(8, 10);

		if (Integer.parseInt(yyyy) >= 2019 && Integer.parseInt(mm) >= 5) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}



	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String yyyy = S.substring(0, 4);
		String mm = S.substring(5, 7);
		String dd = S.substring(8, 10);

		if (Integer.parseInt(yyyy) >= 2019 && Integer.parseInt(mm) >= 5) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}



	}
} 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 yyyy = S.substring(0, 4);
		String mm = S.substring(5, 7);
		String dd = S.substring(8, 10);

		if (Integer.parseInt(yyyy) >= 2019 && Integer.parseInt(mm) >= 5) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}



	}
}