import java.util.Scanner;

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

	void solve(Scanner sc) {
		String S = sc.next().replaceAll("/", "");
		if(Integer.parseInt(S) <= 20190430) {
			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) {
		Main main = new Main();
		Scanner sc = new Scanner(System.in);
		main.solve(sc);
		sc.close();
	}

	void solve(Scanner sc) {
		String S = sc.next().replaceAll("/", "");
		if(Integer.parseInt(S) <= 20190430) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
	}
} Main public static void main(String[] args) {
		Main main = new Main();
		Scanner sc = new Scanner(System.in);
		main.solve(sc);
		sc.close();
	} main {
		Main main = new Main();
		Scanner sc = new Scanner(System.in);
		main.solve(sc);
		sc.close();
	} Main main = new Main(); main new Main() Scanner sc = new Scanner(System.in); sc new Scanner(System.in) main.solve(sc) main.solve main sc sc.close() sc.close sc String[] args args void solve(Scanner sc) {
		String S = sc.next().replaceAll("/", "");
		if(Integer.parseInt(S) <= 20190430) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
	} solve {
		String S = sc.next().replaceAll("/", "");
		if(Integer.parseInt(S) <= 20190430) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
	} String S = sc.next().replaceAll("/", ""); S sc.next().replaceAll("/", "") sc.next().replaceAll sc.next() sc.next sc "/" "" if(Integer.parseInt(S) <= 20190430) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		} Integer.parseInt(S) <= 20190430 Integer.parseInt(S) Integer.parseInt Integer S 20190430 {
			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" Scanner sc sc public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		Scanner sc = new Scanner(System.in);
		main.solve(sc);
		sc.close();
	}

	void solve(Scanner sc) {
		String S = sc.next().replaceAll("/", "");
		if(Integer.parseInt(S) <= 20190430) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
	}
} public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		Scanner sc = new Scanner(System.in);
		main.solve(sc);
		sc.close();
	}

	void solve(Scanner sc) {
		String S = sc.next().replaceAll("/", "");
		if(Integer.parseInt(S) <= 20190430) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
	}
} Main
import java.util.Scanner;

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

	void solve(Scanner sc) {
		String S = sc.next().replaceAll("/", "");
		if(Integer.parseInt(S) <= 20190430) {
			System.out.println("Heisei");
		}else {
			System.out.println("TBD");
		}
	}
}
