import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		String t="";
		t+=s.charAt(5);
		t+=s.charAt(6);
		int a=Integer.parseInt(t);
		//System.out.println(a);
		if(a<=04) 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) {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		String t="";
		t+=s.charAt(5);
		t+=s.charAt(6);
		int a=Integer.parseInt(t);
		//System.out.println(a);
		if(a<=04) System.out.println("Heisei");
		else System.out.println("TBD");
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		String t="";
		t+=s.charAt(5);
		t+=s.charAt(6);
		int a=Integer.parseInt(t);
		//System.out.println(a);
		if(a<=04) System.out.println("Heisei");
		else System.out.println("TBD");
	} main {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		String t="";
		t+=s.charAt(5);
		t+=s.charAt(6);
		int a=Integer.parseInt(t);
		//System.out.println(a);
		if(a<=04) System.out.println("Heisei");
		else System.out.println("TBD");
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s=scan.nextLine(); s scan.nextLine() scan.nextLine scan String t=""; t "" t+=s.charAt(5) t s.charAt(5) s.charAt s 5 t+=s.charAt(6) t s.charAt(6) s.charAt s 6 int a=Integer.parseInt(t); a Integer.parseInt(t) Integer.parseInt Integer t if(a<=04) System.out.println("Heisei");
		else System.out.println("TBD"); a<=04 a 04 System.out.println("Heisei") System.out.println System.out System System.out "Heisei" System.out.println("TBD") System.out.println System.out System System.out "TBD" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		String t="";
		t+=s.charAt(5);
		t+=s.charAt(6);
		int a=Integer.parseInt(t);
		//System.out.println(a);
		if(a<=04) System.out.println("Heisei");
		else System.out.println("TBD");
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		String t="";
		t+=s.charAt(5);
		t+=s.charAt(6);
		int a=Integer.parseInt(t);
		//System.out.println(a);
		if(a<=04) System.out.println("Heisei");
		else System.out.println("TBD");
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		String t="";
		t+=s.charAt(5);
		t+=s.charAt(6);
		int a=Integer.parseInt(t);
		//System.out.println(a);
		if(a<=04) System.out.println("Heisei");
		else System.out.println("TBD");
	}

}
