
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] sAry = s.split("/");
		String ans = (sAry[1].matches("0[1-4]")) ?
				"Heisei" : "TBD";
		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] sAry = s.split("/");
		String ans = (sAry[1].matches("0[1-4]")) ?
				"Heisei" : "TBD";
		System.out.println(ans);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] sAry = s.split("/");
		String ans = (sAry[1].matches("0[1-4]")) ?
				"Heisei" : "TBD";
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] sAry = s.split("/");
		String ans = (sAry[1].matches("0[1-4]")) ?
				"Heisei" : "TBD";
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String[] sAry = s.split("/"); sAry s.split("/") s.split s "/" String ans = (sAry[1].matches("0[1-4]")) ?
				"Heisei" : "TBD"; ans (sAry[1].matches("0[1-4]")) ?
				"Heisei" : "TBD" (sAry[1].matches("0[1-4]")) sAry[1].matches sAry[1] sAry 1 "0[1-4]" "Heisei" "TBD" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] sAry = s.split("/");
		String ans = (sAry[1].matches("0[1-4]")) ?
				"Heisei" : "TBD";
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] sAry = s.split("/");
		String ans = (sAry[1].matches("0[1-4]")) ?
				"Heisei" : "TBD";
		System.out.println(ans);
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String[] sAry = s.split("/");
		String ans = (sAry[1].matches("0[1-4]")) ?
				"Heisei" : "TBD";
		System.out.println(ans);
	}
}
