import java.io.IOException;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);

		String[] s = sc.next().split("/");

		int y = Integer.parseInt(s[0]);
		int m = Integer.parseInt(s[1]);

		if (y < 2019) {
			System.out.println("Heisei");
		} else if (y == 2019) {
			if (m < 5) {
				System.out.println("Heisei");
			} else {
				System.out.println("TBD");
			}
		} else {
			System.out.println("TBD");
		}

		sc.close();
	}
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);

		String[] s = sc.next().split("/");

		int y = Integer.parseInt(s[0]);
		int m = Integer.parseInt(s[1]);

		if (y < 2019) {
			System.out.println("Heisei");
		} else if (y == 2019) {
			if (m < 5) {
				System.out.println("Heisei");
			} else {
				System.out.println("TBD");
			}
		} else {
			System.out.println("TBD");
		}

		sc.close();
	}
} Main public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);

		String[] s = sc.next().split("/");

		int y = Integer.parseInt(s[0]);
		int m = Integer.parseInt(s[1]);

		if (y < 2019) {
			System.out.println("Heisei");
		} else if (y == 2019) {
			if (m < 5) {
				System.out.println("Heisei");
			} else {
				System.out.println("TBD");
			}
		} else {
			System.out.println("TBD");
		}

		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

		String[] s = sc.next().split("/");

		int y = Integer.parseInt(s[0]);
		int m = Integer.parseInt(s[1]);

		if (y < 2019) {
			System.out.println("Heisei");
		} else if (y == 2019) {
			if (m < 5) {
				System.out.println("Heisei");
			} else {
				System.out.println("TBD");
			}
		} else {
			System.out.println("TBD");
		}

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

		String[] s = sc.next().split("/");

		int y = Integer.parseInt(s[0]);
		int m = Integer.parseInt(s[1]);

		if (y < 2019) {
			System.out.println("Heisei");
		} else if (y == 2019) {
			if (m < 5) {
				System.out.println("Heisei");
			} else {
				System.out.println("TBD");
			}
		} else {
			System.out.println("TBD");
		}

		sc.close();
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);

		String[] s = sc.next().split("/");

		int y = Integer.parseInt(s[0]);
		int m = Integer.parseInt(s[1]);

		if (y < 2019) {
			System.out.println("Heisei");
		} else if (y == 2019) {
			if (m < 5) {
				System.out.println("Heisei");
			} else {
				System.out.println("TBD");
			}
		} else {
			System.out.println("TBD");
		}

		sc.close();
	}
} Main
import java.io.IOException;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);

		String[] s = sc.next().split("/");

		int y = Integer.parseInt(s[0]);
		int m = Integer.parseInt(s[1]);

		if (y < 2019) {
			System.out.println("Heisei");
		} else if (y == 2019) {
			if (m < 5) {
				System.out.println("Heisei");
			} else {
				System.out.println("TBD");
			}
		} else {
			System.out.println("TBD");
		}

		sc.close();
	}
}
