import java.io.InputStream;
import java.io.PrintStream;
import java.util.Date;
import java.util.Scanner;

public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		String s = sc.next();
		Date d = new Date(s);
		Date h = new Date("2019/04/30");
		if (d.after(h)) {
			out.println("TBD");
		} else {
			out.println("Heisei");
		}
		sc.close();
	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

} import java.io.InputStream; InputStream java.io import java.io.PrintStream; PrintStream java.io import java.util.Date; Date java.util import java.util.Scanner; Scanner java.util public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		String s = sc.next();
		Date d = new Date(s);
		Date h = new Date("2019/04/30");
		if (d.after(h)) {
			out.println("TBD");
		} else {
			out.println("Heisei");
		}
		sc.close();
	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

} Main InputStream in = System.in; in System.in System System.in PrintStream out = System.out; out System.out System System.out public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		String s = sc.next();
		Date d = new Date(s);
		Date h = new Date("2019/04/30");
		if (d.after(h)) {
			out.println("TBD");
		} else {
			out.println("Heisei");
		}
		sc.close();
	} _main {
		Scanner sc = new Scanner(in);

		String s = sc.next();
		Date d = new Date(s);
		Date h = new Date("2019/04/30");
		if (d.after(h)) {
			out.println("TBD");
		} else {
			out.println("Heisei");
		}
		sc.close();
	} Scanner sc = new Scanner(in); sc new Scanner(in) String s = sc.next(); s sc.next() sc.next sc Date d = new Date(s); d new Date(s) Date h = new Date("2019/04/30"); h new Date("2019/04/30") if (d.after(h)) {
			out.println("TBD");
		} else {
			out.println("Heisei");
		} d.after(h) d.after d h {
			out.println("TBD");
		} out.println("TBD") out.println out "TBD" {
			out.println("Heisei");
		} out.println("Heisei") out.println out "Heisei" sc.close() sc.close sc String[] args args public static void main(String[] args) {
		new Main()._main(args);
	} main {
		new Main()._main(args);
	} new Main()._main(args) new Main()._main new Main() args String[] args args public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		String s = sc.next();
		Date d = new Date(s);
		Date h = new Date("2019/04/30");
		if (d.after(h)) {
			out.println("TBD");
		} else {
			out.println("Heisei");
		}
		sc.close();
	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

} public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		String s = sc.next();
		Date d = new Date(s);
		Date h = new Date("2019/04/30");
		if (d.after(h)) {
			out.println("TBD");
		} else {
			out.println("Heisei");
		}
		sc.close();
	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

} Main
import java.io.InputStream;
import java.io.PrintStream;
import java.util.Date;
import java.util.Scanner;

public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		String s = sc.next();
		Date d = new Date(s);
		Date h = new Date("2019/04/30");
		if (d.after(h)) {
			out.println("TBD");
		} else {
			out.println("Heisei");
		}
		sc.close();
	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

}
