import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int s = Integer.parseInt(sc.next().replaceAll("/", ""));
		if(s > 20190430) System.out.println("TBD");
		else System.out.println("Heisei");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int s = Integer.parseInt(sc.next().replaceAll("/", ""));
		if(s > 20190430) System.out.println("TBD");
		else System.out.println("Heisei");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int s = Integer.parseInt(sc.next().replaceAll("/", ""));
		if(s > 20190430) System.out.println("TBD");
		else System.out.println("Heisei");
	} main {
		Scanner sc = new Scanner(System.in);
		int s = Integer.parseInt(sc.next().replaceAll("/", ""));
		if(s > 20190430) System.out.println("TBD");
		else System.out.println("Heisei");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int s = Integer.parseInt(sc.next().replaceAll("/", "")); s Integer.parseInt(sc.next().replaceAll("/", "")) Integer.parseInt Integer sc.next().replaceAll("/", "") sc.next().replaceAll sc.next() sc.next sc "/" "" if(s > 20190430) System.out.println("TBD");
		else System.out.println("Heisei"); s > 20190430 s 20190430 System.out.println("TBD") System.out.println System.out System System.out "TBD" System.out.println("Heisei") System.out.println System.out System System.out "Heisei" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int s = Integer.parseInt(sc.next().replaceAll("/", ""));
		if(s > 20190430) System.out.println("TBD");
		else System.out.println("Heisei");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int s = Integer.parseInt(sc.next().replaceAll("/", ""));
		if(s > 20190430) System.out.println("TBD");
		else System.out.println("Heisei");
	}
} Main
import java.util.Scanner;

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