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

public class Main {
	public static void main(String[] args) {
		String line = null;
		try (Scanner sc = new Scanner(System.in)) {
			line = sc.nextLine();
			SimpleDateFormat sd = new SimpleDateFormat("yyyy/MM/dd");

			Date d1 = sd.parse(line);
			Date d2 = sd.parse("2019/04/30");

			String result = "Heisei";
			if (d1.compareTo(d2) > 0) {
				result = "TBD";
			}
			System.out.println(result);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} 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) {
		String line = null;
		try (Scanner sc = new Scanner(System.in)) {
			line = sc.nextLine();
			SimpleDateFormat sd = new SimpleDateFormat("yyyy/MM/dd");

			Date d1 = sd.parse(line);
			Date d2 = sd.parse("2019/04/30");

			String result = "Heisei";
			if (d1.compareTo(d2) > 0) {
				result = "TBD";
			}
			System.out.println(result);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		String line = null;
		try (Scanner sc = new Scanner(System.in)) {
			line = sc.nextLine();
			SimpleDateFormat sd = new SimpleDateFormat("yyyy/MM/dd");

			Date d1 = sd.parse(line);
			Date d2 = sd.parse("2019/04/30");

			String result = "Heisei";
			if (d1.compareTo(d2) > 0) {
				result = "TBD";
			}
			System.out.println(result);
		} catch (Exception e) {
			e.printStackTrace();
		}
	} main {
		String line = null;
		try (Scanner sc = new Scanner(System.in)) {
			line = sc.nextLine();
			SimpleDateFormat sd = new SimpleDateFormat("yyyy/MM/dd");

			Date d1 = sd.parse(line);
			Date d2 = sd.parse("2019/04/30");

			String result = "Heisei";
			if (d1.compareTo(d2) > 0) {
				result = "TBD";
			}
			System.out.println(result);
		} catch (Exception e) {
			e.printStackTrace();
		}
	} String line = null; line null try (Scanner sc = new Scanner(System.in)) {
			line = sc.nextLine();
			SimpleDateFormat sd = new SimpleDateFormat("yyyy/MM/dd");

			Date d1 = sd.parse(line);
			Date d2 = sd.parse("2019/04/30");

			String result = "Heisei";
			if (d1.compareTo(d2) > 0) {
				result = "TBD";
			}
			System.out.println(result);
		} catch (Exception e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		} Exception e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			line = sc.nextLine();
			SimpleDateFormat sd = new SimpleDateFormat("yyyy/MM/dd");

			Date d1 = sd.parse(line);
			Date d2 = sd.parse("2019/04/30");

			String result = "Heisei";
			if (d1.compareTo(d2) > 0) {
				result = "TBD";
			}
			System.out.println(result);
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) line = sc.nextLine() line sc.nextLine() sc.nextLine sc SimpleDateFormat sd = new SimpleDateFormat("yyyy/MM/dd"); sd new SimpleDateFormat("yyyy/MM/dd") Date d1 = sd.parse(line); d1 sd.parse(line) sd.parse sd line Date d2 = sd.parse("2019/04/30"); d2 sd.parse("2019/04/30") sd.parse sd "2019/04/30" String result = "Heisei"; result "Heisei" if (d1.compareTo(d2) > 0) {
				result = "TBD";
			} d1.compareTo(d2) > 0 d1.compareTo(d2) d1.compareTo d1 d2 0 {
				result = "TBD";
			} result = "TBD" result "TBD" System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
	public static void main(String[] args) {
		String line = null;
		try (Scanner sc = new Scanner(System.in)) {
			line = sc.nextLine();
			SimpleDateFormat sd = new SimpleDateFormat("yyyy/MM/dd");

			Date d1 = sd.parse(line);
			Date d2 = sd.parse("2019/04/30");

			String result = "Heisei";
			if (d1.compareTo(d2) > 0) {
				result = "TBD";
			}
			System.out.println(result);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} public class Main {
	public static void main(String[] args) {
		String line = null;
		try (Scanner sc = new Scanner(System.in)) {
			line = sc.nextLine();
			SimpleDateFormat sd = new SimpleDateFormat("yyyy/MM/dd");

			Date d1 = sd.parse(line);
			Date d2 = sd.parse("2019/04/30");

			String result = "Heisei";
			if (d1.compareTo(d2) > 0) {
				result = "TBD";
			}
			System.out.println(result);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} Main
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		String line = null;
		try (Scanner sc = new Scanner(System.in)) {
			line = sc.nextLine();
			SimpleDateFormat sd = new SimpleDateFormat("yyyy/MM/dd");

			Date d1 = sd.parse(line);
			Date d2 = sd.parse("2019/04/30");

			String result = "Heisei";
			if (d1.compareTo(d2) > 0) {
				result = "TBD";
			}
			System.out.println(result);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
