import java.util.Scanner;

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

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