import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner bui = new Scanner(System.in);
		String s = bui.next();

		String[] year = s.split("/");
		if(Integer.parseInt(year[0]) < 2019 ) {
			System.out.println("Heisei");
		} else if(Integer.parseInt(year[0]) > 2019) {
			System.out.println("TBD");
		} else if(Integer.parseInt(year[1]) <= 4) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]) {
		Scanner bui = new Scanner(System.in);
		String s = bui.next();

		String[] year = s.split("/");
		if(Integer.parseInt(year[0]) < 2019 ) {
			System.out.println("Heisei");
		} else if(Integer.parseInt(year[0]) > 2019) {
			System.out.println("TBD");
		} else if(Integer.parseInt(year[1]) <= 4) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	}
} Main public static void main(String args[]) {
		Scanner bui = new Scanner(System.in);
		String s = bui.next();

		String[] year = s.split("/");
		if(Integer.parseInt(year[0]) < 2019 ) {
			System.out.println("Heisei");
		} else if(Integer.parseInt(year[0]) > 2019) {
			System.out.println("TBD");
		} else if(Integer.parseInt(year[1]) <= 4) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	} main {
		Scanner bui = new Scanner(System.in);
		String s = bui.next();

		String[] year = s.split("/");
		if(Integer.parseInt(year[0]) < 2019 ) {
			System.out.println("Heisei");
		} else if(Integer.parseInt(year[0]) > 2019) {
			System.out.println("TBD");
		} else if(Integer.parseInt(year[1]) <= 4) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	} Scanner bui = new Scanner(System.in); bui new Scanner(System.in) String s = bui.next(); s bui.next() bui.next bui String[] year = s.split("/"); year s.split("/") s.split s "/" if(Integer.parseInt(year[0]) < 2019 ) {
			System.out.println("Heisei");
		} else if(Integer.parseInt(year[0]) > 2019) {
			System.out.println("TBD");
		} else if(Integer.parseInt(year[1]) <= 4) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		} Integer.parseInt(year[0]) < 2019 Integer.parseInt(year[0]) Integer.parseInt Integer year[0] year 0 2019 {
			System.out.println("Heisei");
		} System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if(Integer.parseInt(year[0]) > 2019) {
			System.out.println("TBD");
		} else if(Integer.parseInt(year[1]) <= 4) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		} Integer.parseInt(year[0]) > 2019 Integer.parseInt(year[0]) Integer.parseInt Integer year[0] year 0 2019 {
			System.out.println("TBD");
		} System.out.println("TBD") System.out.println System.out System System.out "TBD" if(Integer.parseInt(year[1]) <= 4) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		} Integer.parseInt(year[1]) <= 4 Integer.parseInt(year[1]) Integer.parseInt Integer year[1] year 1 4 {
			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" String args[] args public class Main {
	public static void main(String args[]) {
		Scanner bui = new Scanner(System.in);
		String s = bui.next();

		String[] year = s.split("/");
		if(Integer.parseInt(year[0]) < 2019 ) {
			System.out.println("Heisei");
		} else if(Integer.parseInt(year[0]) > 2019) {
			System.out.println("TBD");
		} else if(Integer.parseInt(year[1]) <= 4) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	}
} public class Main {
	public static void main(String args[]) {
		Scanner bui = new Scanner(System.in);
		String s = bui.next();

		String[] year = s.split("/");
		if(Integer.parseInt(year[0]) < 2019 ) {
			System.out.println("Heisei");
		} else if(Integer.parseInt(year[0]) > 2019) {
			System.out.println("TBD");
		} else if(Integer.parseInt(year[1]) <= 4) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner bui = new Scanner(System.in);
		String s = bui.next();

		String[] year = s.split("/");
		if(Integer.parseInt(year[0]) < 2019 ) {
			System.out.println("Heisei");
		} else if(Integer.parseInt(year[0]) > 2019) {
			System.out.println("TBD");
		} else if(Integer.parseInt(year[1]) <= 4) {
			System.out.println("Heisei");
		} else {
			System.out.println("TBD");
		}
	}
}
