import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] temp = s.split("/");

		int year = Integer.parseInt(temp[0]);
		int month;
		if (temp[1].charAt(0) == '0') {
			month = Integer.parseInt(temp[1].substring(1));
		} else {
			month = Integer.parseInt(temp[1]);
		}
		int date;
		if (temp[2].charAt(0) == '0') {
			date = Integer.parseInt(temp[2].substring(1));
		} else {
			date = Integer.parseInt((temp[2]));
		}

		if (year < 2019) {
			System.out.println("Heisei");
		} else {
			if (month < 4) {
				System.out.println("Heisei");
			} else if (month == 4) {
				if (date <= 30) {
					System.out.println("Heisei");
				} else {
					System.out.println("TBD");
				}
			} 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.nextLine();
		String[] temp = s.split("/");

		int year = Integer.parseInt(temp[0]);
		int month;
		if (temp[1].charAt(0) == '0') {
			month = Integer.parseInt(temp[1].substring(1));
		} else {
			month = Integer.parseInt(temp[1]);
		}
		int date;
		if (temp[2].charAt(0) == '0') {
			date = Integer.parseInt(temp[2].substring(1));
		} else {
			date = Integer.parseInt((temp[2]));
		}

		if (year < 2019) {
			System.out.println("Heisei");
		} else {
			if (month < 4) {
				System.out.println("Heisei");
			} else if (month == 4) {
				if (date <= 30) {
					System.out.println("Heisei");
				} else {
					System.out.println("TBD");
				}
			} else {
				System.out.println("TBD");
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] temp = s.split("/");

		int year = Integer.parseInt(temp[0]);
		int month;
		if (temp[1].charAt(0) == '0') {
			month = Integer.parseInt(temp[1].substring(1));
		} else {
			month = Integer.parseInt(temp[1]);
		}
		int date;
		if (temp[2].charAt(0) == '0') {
			date = Integer.parseInt(temp[2].substring(1));
		} else {
			date = Integer.parseInt((temp[2]));
		}

		if (year < 2019) {
			System.out.println("Heisei");
		} else {
			if (month < 4) {
				System.out.println("Heisei");
			} else if (month == 4) {
				if (date <= 30) {
					System.out.println("Heisei");
				} else {
					System.out.println("TBD");
				}
			} else {
				System.out.println("TBD");
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] temp = s.split("/");

		int year = Integer.parseInt(temp[0]);
		int month;
		if (temp[1].charAt(0) == '0') {
			month = Integer.parseInt(temp[1].substring(1));
		} else {
			month = Integer.parseInt(temp[1]);
		}
		int date;
		if (temp[2].charAt(0) == '0') {
			date = Integer.parseInt(temp[2].substring(1));
		} else {
			date = Integer.parseInt((temp[2]));
		}

		if (year < 2019) {
			System.out.println("Heisei");
		} else {
			if (month < 4) {
				System.out.println("Heisei");
			} else if (month == 4) {
				if (date <= 30) {
					System.out.println("Heisei");
				} else {
					System.out.println("TBD");
				}
			} else {
				System.out.println("TBD");
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc String[] temp = s.split("/"); temp s.split("/") s.split s "/" int year = Integer.parseInt(temp[0]); year Integer.parseInt(temp[0]) Integer.parseInt Integer temp[0] temp 0 int month; month if (temp[1].charAt(0) == '0') {
			month = Integer.parseInt(temp[1].substring(1));
		} else {
			month = Integer.parseInt(temp[1]);
		} temp[1].charAt(0) == '0' temp[1].charAt(0) temp[1].charAt temp[1] temp 1 0 '0' {
			month = Integer.parseInt(temp[1].substring(1));
		} month = Integer.parseInt(temp[1].substring(1)) month Integer.parseInt(temp[1].substring(1)) Integer.parseInt Integer temp[1].substring(1) temp[1].substring temp[1] temp 1 1 {
			month = Integer.parseInt(temp[1]);
		} month = Integer.parseInt(temp[1]) month Integer.parseInt(temp[1]) Integer.parseInt Integer temp[1] temp 1 int date; date if (temp[2].charAt(0) == '0') {
			date = Integer.parseInt(temp[2].substring(1));
		} else {
			date = Integer.parseInt((temp[2]));
		} temp[2].charAt(0) == '0' temp[2].charAt(0) temp[2].charAt temp[2] temp 2 0 '0' {
			date = Integer.parseInt(temp[2].substring(1));
		} date = Integer.parseInt(temp[2].substring(1)) date Integer.parseInt(temp[2].substring(1)) Integer.parseInt Integer temp[2].substring(1) temp[2].substring temp[2] temp 2 1 {
			date = Integer.parseInt((temp[2]));
		} date = Integer.parseInt((temp[2])) date Integer.parseInt((temp[2])) Integer.parseInt Integer (temp[2]) temp 2 if (year < 2019) {
			System.out.println("Heisei");
		} else {
			if (month < 4) {
				System.out.println("Heisei");
			} else if (month == 4) {
				if (date <= 30) {
					System.out.println("Heisei");
				} else {
					System.out.println("TBD");
				}
			} else {
				System.out.println("TBD");
			}
		} year < 2019 year 2019 {
			System.out.println("Heisei");
		} System.out.println("Heisei") System.out.println System.out System System.out "Heisei" {
			if (month < 4) {
				System.out.println("Heisei");
			} else if (month == 4) {
				if (date <= 30) {
					System.out.println("Heisei");
				} else {
					System.out.println("TBD");
				}
			} else {
				System.out.println("TBD");
			}
		} if (month < 4) {
				System.out.println("Heisei");
			} else if (month == 4) {
				if (date <= 30) {
					System.out.println("Heisei");
				} else {
					System.out.println("TBD");
				}
			} else {
				System.out.println("TBD");
			} month < 4 month 4 {
				System.out.println("Heisei");
			} System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if (month == 4) {
				if (date <= 30) {
					System.out.println("Heisei");
				} else {
					System.out.println("TBD");
				}
			} else {
				System.out.println("TBD");
			} month == 4 month 4 {
				if (date <= 30) {
					System.out.println("Heisei");
				} else {
					System.out.println("TBD");
				}
			} if (date <= 30) {
					System.out.println("Heisei");
				} else {
					System.out.println("TBD");
				} date <= 30 date 30 {
					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" {
				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.nextLine();
		String[] temp = s.split("/");

		int year = Integer.parseInt(temp[0]);
		int month;
		if (temp[1].charAt(0) == '0') {
			month = Integer.parseInt(temp[1].substring(1));
		} else {
			month = Integer.parseInt(temp[1]);
		}
		int date;
		if (temp[2].charAt(0) == '0') {
			date = Integer.parseInt(temp[2].substring(1));
		} else {
			date = Integer.parseInt((temp[2]));
		}

		if (year < 2019) {
			System.out.println("Heisei");
		} else {
			if (month < 4) {
				System.out.println("Heisei");
			} else if (month == 4) {
				if (date <= 30) {
					System.out.println("Heisei");
				} else {
					System.out.println("TBD");
				}
			} else {
				System.out.println("TBD");
			}
		}
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] temp = s.split("/");

		int year = Integer.parseInt(temp[0]);
		int month;
		if (temp[1].charAt(0) == '0') {
			month = Integer.parseInt(temp[1].substring(1));
		} else {
			month = Integer.parseInt(temp[1]);
		}
		int date;
		if (temp[2].charAt(0) == '0') {
			date = Integer.parseInt(temp[2].substring(1));
		} else {
			date = Integer.parseInt((temp[2]));
		}

		if (year < 2019) {
			System.out.println("Heisei");
		} else {
			if (month < 4) {
				System.out.println("Heisei");
			} else if (month == 4) {
				if (date <= 30) {
					System.out.println("Heisei");
				} else {
					System.out.println("TBD");
				}
			} 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.nextLine();
		String[] temp = s.split("/");

		int year = Integer.parseInt(temp[0]);
		int month;
		if (temp[1].charAt(0) == '0') {
			month = Integer.parseInt(temp[1].substring(1));
		} else {
			month = Integer.parseInt(temp[1]);
		}
		int date;
		if (temp[2].charAt(0) == '0') {
			date = Integer.parseInt(temp[2].substring(1));
		} else {
			date = Integer.parseInt((temp[2]));
		}

		if (year < 2019) {
			System.out.println("Heisei");
		} else {
			if (month < 4) {
				System.out.println("Heisei");
			} else if (month == 4) {
				if (date <= 30) {
					System.out.println("Heisei");
				} else {
					System.out.println("TBD");
				}
			} else {
				System.out.println("TBD");
			}
		}
	}
}