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

public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			String s = scanner.next();
			scanner.nextLine();
			DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
			LocalDate date = LocalDate.parse(s, dateTimeFormatter);
			LocalDate date0430 = LocalDate.of(2019, 4, 30);
			if (date.isAfter(date0430)) {
				System.out.println("TBD");
			} else {
				System.out.println("Heisei");
			}
		}
	}
} 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) {
		try (Scanner scanner = new Scanner(System.in)) {
			String s = scanner.next();
			scanner.nextLine();
			DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
			LocalDate date = LocalDate.parse(s, dateTimeFormatter);
			LocalDate date0430 = LocalDate.of(2019, 4, 30);
			if (date.isAfter(date0430)) {
				System.out.println("TBD");
			} else {
				System.out.println("Heisei");
			}
		}
	}
} Main public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			String s = scanner.next();
			scanner.nextLine();
			DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
			LocalDate date = LocalDate.parse(s, dateTimeFormatter);
			LocalDate date0430 = LocalDate.of(2019, 4, 30);
			if (date.isAfter(date0430)) {
				System.out.println("TBD");
			} else {
				System.out.println("Heisei");
			}
		}
	} main {
		try (Scanner scanner = new Scanner(System.in)) {
			String s = scanner.next();
			scanner.nextLine();
			DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
			LocalDate date = LocalDate.parse(s, dateTimeFormatter);
			LocalDate date0430 = LocalDate.of(2019, 4, 30);
			if (date.isAfter(date0430)) {
				System.out.println("TBD");
			} else {
				System.out.println("Heisei");
			}
		}
	} try (Scanner scanner = new Scanner(System.in)) {
			String s = scanner.next();
			scanner.nextLine();
			DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
			LocalDate date = LocalDate.parse(s, dateTimeFormatter);
			LocalDate date0430 = LocalDate.of(2019, 4, 30);
			if (date.isAfter(date0430)) {
				System.out.println("TBD");
			} else {
				System.out.println("Heisei");
			}
		} {
			String s = scanner.next();
			scanner.nextLine();
			DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
			LocalDate date = LocalDate.parse(s, dateTimeFormatter);
			LocalDate date0430 = LocalDate.of(2019, 4, 30);
			if (date.isAfter(date0430)) {
				System.out.println("TBD");
			} else {
				System.out.println("Heisei");
			}
		} Scanner scanner = new Scanner(System.in) Scanner scanner = new Scanner(System.in) new Scanner(System.in) String s = scanner.next(); s scanner.next() scanner.next scanner scanner.nextLine() scanner.nextLine scanner DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd"); dateTimeFormatter DateTimeFormatter.ofPattern("yyyy/MM/dd") DateTimeFormatter.ofPattern DateTimeFormatter "yyyy/MM/dd" LocalDate date = LocalDate.parse(s, dateTimeFormatter); date LocalDate.parse(s, dateTimeFormatter) LocalDate.parse LocalDate s dateTimeFormatter LocalDate date0430 = LocalDate.of(2019, 4, 30); date0430 LocalDate.of(2019, 4, 30) LocalDate.of LocalDate 2019 4 30 if (date.isAfter(date0430)) {
				System.out.println("TBD");
			} else {
				System.out.println("Heisei");
			} date.isAfter(date0430) date.isAfter date date0430 {
				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) {
		try (Scanner scanner = new Scanner(System.in)) {
			String s = scanner.next();
			scanner.nextLine();
			DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
			LocalDate date = LocalDate.parse(s, dateTimeFormatter);
			LocalDate date0430 = LocalDate.of(2019, 4, 30);
			if (date.isAfter(date0430)) {
				System.out.println("TBD");
			} else {
				System.out.println("Heisei");
			}
		}
	}
} public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			String s = scanner.next();
			scanner.nextLine();
			DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
			LocalDate date = LocalDate.parse(s, dateTimeFormatter);
			LocalDate date0430 = LocalDate.of(2019, 4, 30);
			if (date.isAfter(date0430)) {
				System.out.println("TBD");
			} else {
				System.out.println("Heisei");
			}
		}
	}
} Main
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			String s = scanner.next();
			scanner.nextLine();
			DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
			LocalDate date = LocalDate.parse(s, dateTimeFormatter);
			LocalDate date0430 = LocalDate.of(2019, 4, 30);
			if (date.isAfter(date0430)) {
				System.out.println("TBD");
			} else {
				System.out.println("Heisei");
			}
		}
	}
}
