import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		String TBD = "TBD";
		String HEISEI = "Heisei";

		LocalDate tbdFirstDay = LocalDate.of(2019, 5, 1);

		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		LocalDate dateTime = LocalDate.parse(input, DateTimeFormatter.ofPattern("yyyy/MM/dd"));
		if (dateTime.isBefore(tbdFirstDay)) {
			System.out.println(HEISEI);
		} else {
			System.out.println(TBD);
		}

	}
} import java.time.LocalDate; LocalDate java.time import java.time.format.DateTimeFormatter; DateTimeFormatter java.time.format import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		String TBD = "TBD";
		String HEISEI = "Heisei";

		LocalDate tbdFirstDay = LocalDate.of(2019, 5, 1);

		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		LocalDate dateTime = LocalDate.parse(input, DateTimeFormatter.ofPattern("yyyy/MM/dd"));
		if (dateTime.isBefore(tbdFirstDay)) {
			System.out.println(HEISEI);
		} else {
			System.out.println(TBD);
		}

	}
} Main public static void main(String[] args) {
		String TBD = "TBD";
		String HEISEI = "Heisei";

		LocalDate tbdFirstDay = LocalDate.of(2019, 5, 1);

		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		LocalDate dateTime = LocalDate.parse(input, DateTimeFormatter.ofPattern("yyyy/MM/dd"));
		if (dateTime.isBefore(tbdFirstDay)) {
			System.out.println(HEISEI);
		} else {
			System.out.println(TBD);
		}

	} main {
		String TBD = "TBD";
		String HEISEI = "Heisei";

		LocalDate tbdFirstDay = LocalDate.of(2019, 5, 1);

		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		LocalDate dateTime = LocalDate.parse(input, DateTimeFormatter.ofPattern("yyyy/MM/dd"));
		if (dateTime.isBefore(tbdFirstDay)) {
			System.out.println(HEISEI);
		} else {
			System.out.println(TBD);
		}

	} String TBD = "TBD"; TBD "TBD" String HEISEI = "Heisei"; HEISEI "Heisei" LocalDate tbdFirstDay = LocalDate.of(2019, 5, 1); tbdFirstDay LocalDate.of(2019, 5, 1) LocalDate.of LocalDate 2019 5 1 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String input = sc.nextLine(); input sc.nextLine() sc.nextLine sc LocalDate dateTime = LocalDate.parse(input, DateTimeFormatter.ofPattern("yyyy/MM/dd")); dateTime LocalDate.parse(input, DateTimeFormatter.ofPattern("yyyy/MM/dd")) LocalDate.parse LocalDate input DateTimeFormatter.ofPattern("yyyy/MM/dd") DateTimeFormatter.ofPattern DateTimeFormatter "yyyy/MM/dd" if (dateTime.isBefore(tbdFirstDay)) {
			System.out.println(HEISEI);
		} else {
			System.out.println(TBD);
		} dateTime.isBefore(tbdFirstDay) dateTime.isBefore dateTime tbdFirstDay {
			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) {
		String TBD = "TBD";
		String HEISEI = "Heisei";

		LocalDate tbdFirstDay = LocalDate.of(2019, 5, 1);

		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		LocalDate dateTime = LocalDate.parse(input, DateTimeFormatter.ofPattern("yyyy/MM/dd"));
		if (dateTime.isBefore(tbdFirstDay)) {
			System.out.println(HEISEI);
		} else {
			System.out.println(TBD);
		}

	}
} public class Main {
	public static void main(String[] args) {
		String TBD = "TBD";
		String HEISEI = "Heisei";

		LocalDate tbdFirstDay = LocalDate.of(2019, 5, 1);

		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		LocalDate dateTime = LocalDate.parse(input, DateTimeFormatter.ofPattern("yyyy/MM/dd"));
		if (dateTime.isBefore(tbdFirstDay)) {
			System.out.println(HEISEI);
		} else {
			System.out.println(TBD);
		}

	}
} Main
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		String TBD = "TBD";
		String HEISEI = "Heisei";

		LocalDate tbdFirstDay = LocalDate.of(2019, 5, 1);

		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		LocalDate dateTime = LocalDate.parse(input, DateTimeFormatter.ofPattern("yyyy/MM/dd"));
		if (dateTime.isBefore(tbdFirstDay)) {
			System.out.println(HEISEI);
		} else {
			System.out.println(TBD);
		}

	}
}
