import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String dateStr = sc.nextLine();
		SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
		Date inputDate = null;
		Date lastHeisei = null;
		try {
			inputDate = sdFormat.parse(dateStr);
			lastHeisei = sdFormat.parse("2019/4/30");
		} catch (ParseException e) {

		}
		if (inputDate.after(lastHeisei)) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}
		sc.close();
	}
} import java.text.ParseException; ParseException java.text import java.text.SimpleDateFormat; SimpleDateFormat java.text import java.util.Date; Date 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 dateStr = sc.nextLine();
		SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
		Date inputDate = null;
		Date lastHeisei = null;
		try {
			inputDate = sdFormat.parse(dateStr);
			lastHeisei = sdFormat.parse("2019/4/30");
		} catch (ParseException e) {

		}
		if (inputDate.after(lastHeisei)) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}
		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String dateStr = sc.nextLine();
		SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
		Date inputDate = null;
		Date lastHeisei = null;
		try {
			inputDate = sdFormat.parse(dateStr);
			lastHeisei = sdFormat.parse("2019/4/30");
		} catch (ParseException e) {

		}
		if (inputDate.after(lastHeisei)) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		String dateStr = sc.nextLine();
		SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
		Date inputDate = null;
		Date lastHeisei = null;
		try {
			inputDate = sdFormat.parse(dateStr);
			lastHeisei = sdFormat.parse("2019/4/30");
		} catch (ParseException e) {

		}
		if (inputDate.after(lastHeisei)) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String dateStr = sc.nextLine(); dateStr sc.nextLine() sc.nextLine sc SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd"); sdFormat new SimpleDateFormat("yyyy/MM/dd") Date inputDate = null; inputDate null Date lastHeisei = null; lastHeisei null try {
			inputDate = sdFormat.parse(dateStr);
			lastHeisei = sdFormat.parse("2019/4/30");
		} catch (ParseException e) {

		} catch (ParseException e) {

		} ParseException e {

		} {
			inputDate = sdFormat.parse(dateStr);
			lastHeisei = sdFormat.parse("2019/4/30");
		} inputDate = sdFormat.parse(dateStr) inputDate sdFormat.parse(dateStr) sdFormat.parse sdFormat dateStr lastHeisei = sdFormat.parse("2019/4/30") lastHeisei sdFormat.parse("2019/4/30") sdFormat.parse sdFormat "2019/4/30" if (inputDate.after(lastHeisei)) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		} inputDate.after(lastHeisei) inputDate.after inputDate lastHeisei {
			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" sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String dateStr = sc.nextLine();
		SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
		Date inputDate = null;
		Date lastHeisei = null;
		try {
			inputDate = sdFormat.parse(dateStr);
			lastHeisei = sdFormat.parse("2019/4/30");
		} catch (ParseException e) {

		}
		if (inputDate.after(lastHeisei)) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}
		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String dateStr = sc.nextLine();
		SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
		Date inputDate = null;
		Date lastHeisei = null;
		try {
			inputDate = sdFormat.parse(dateStr);
			lastHeisei = sdFormat.parse("2019/4/30");
		} catch (ParseException e) {

		}
		if (inputDate.after(lastHeisei)) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}
		sc.close();
	}
} Main
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String dateStr = sc.nextLine();
		SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
		Date inputDate = null;
		Date lastHeisei = null;
		try {
			inputDate = sdFormat.parse(dateStr);
			lastHeisei = sdFormat.parse("2019/4/30");
		} catch (ParseException e) {

		}
		if (inputDate.after(lastHeisei)) {
			System.out.println("TBD");
		} else {
			System.out.println("Heisei");
		}
		sc.close();
	}
}