import java.util.Calendar;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();

		Calendar cal = Calendar.getInstance();
		cal.set(Integer.valueOf(S.split("/")[0]), Integer.valueOf(S.split("/")[1]), Integer.valueOf(S.split("/")[2]));

		Calendar cal2 = Calendar.getInstance();
		cal2.set(2019, 4, 30);
		if (cal.compareTo(cal2) < 0) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	}
} import java.util.Calendar; Calendar java.util 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();

		Calendar cal = Calendar.getInstance();
		cal.set(Integer.valueOf(S.split("/")[0]), Integer.valueOf(S.split("/")[1]), Integer.valueOf(S.split("/")[2]));

		Calendar cal2 = Calendar.getInstance();
		cal2.set(2019, 4, 30);
		if (cal.compareTo(cal2) < 0) {
			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();

		Calendar cal = Calendar.getInstance();
		cal.set(Integer.valueOf(S.split("/")[0]), Integer.valueOf(S.split("/")[1]), Integer.valueOf(S.split("/")[2]));

		Calendar cal2 = Calendar.getInstance();
		cal2.set(2019, 4, 30);
		if (cal.compareTo(cal2) < 0) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();

		Calendar cal = Calendar.getInstance();
		cal.set(Integer.valueOf(S.split("/")[0]), Integer.valueOf(S.split("/")[1]), Integer.valueOf(S.split("/")[2]));

		Calendar cal2 = Calendar.getInstance();
		cal2.set(2019, 4, 30);
		if (cal.compareTo(cal2) < 0) {
			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 Calendar cal = Calendar.getInstance(); cal Calendar.getInstance() Calendar.getInstance Calendar cal.set(Integer.valueOf(S.split("/")[0]), Integer.valueOf(S.split("/")[1]), Integer.valueOf(S.split("/")[2])) cal.set cal Integer.valueOf(S.split("/")[0]) Integer.valueOf Integer S.split("/")[0] S.split("/") S.split S "/" 0 Integer.valueOf(S.split("/")[1]) Integer.valueOf Integer S.split("/")[1] S.split("/") S.split S "/" 1 Integer.valueOf(S.split("/")[2]) Integer.valueOf Integer S.split("/")[2] S.split("/") S.split S "/" 2 Calendar cal2 = Calendar.getInstance(); cal2 Calendar.getInstance() Calendar.getInstance Calendar cal2.set(2019, 4, 30) cal2.set cal2 2019 4 30 if (cal.compareTo(cal2) < 0) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		} cal.compareTo(cal2) < 0 cal.compareTo(cal2) cal.compareTo cal cal2 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 S = sc.next();

		Calendar cal = Calendar.getInstance();
		cal.set(Integer.valueOf(S.split("/")[0]), Integer.valueOf(S.split("/")[1]), Integer.valueOf(S.split("/")[2]));

		Calendar cal2 = Calendar.getInstance();
		cal2.set(2019, 4, 30);
		if (cal.compareTo(cal2) < 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 S = sc.next();

		Calendar cal = Calendar.getInstance();
		cal.set(Integer.valueOf(S.split("/")[0]), Integer.valueOf(S.split("/")[1]), Integer.valueOf(S.split("/")[2]));

		Calendar cal2 = Calendar.getInstance();
		cal2.set(2019, 4, 30);
		if (cal.compareTo(cal2) < 0) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	}
} Main
import java.util.Calendar;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();

		Calendar cal = Calendar.getInstance();
		cal.set(Integer.valueOf(S.split("/")[0]), Integer.valueOf(S.split("/")[1]), Integer.valueOf(S.split("/")[2]));

		Calendar cal2 = Calendar.getInstance();
		cal2.set(2019, 4, 30);
		if (cal.compareTo(cal2) < 0) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	}
}
