import java.util.Scanner;
class Main{
	public static void main(String[]args) {
	Scanner scan=new Scanner(System.in);
	String a=scan.next();
	//int c=scan.nextInt();
	int ans=0;
	if(a.charAt(6)<'5') {
		ans=1;
	}
	else{
	}
	if(a.charAt(5)=='1') {
		ans=0;
	}
	System.out.println(ans==1?"Heisei":"TBD");
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[]args) {
	Scanner scan=new Scanner(System.in);
	String a=scan.next();
	//int c=scan.nextInt();
	int ans=0;
	if(a.charAt(6)<'5') {
		ans=1;
	}
	else{
	}
	if(a.charAt(5)=='1') {
		ans=0;
	}
	System.out.println(ans==1?"Heisei":"TBD");
	}
} Main public static void main(String[]args) {
	Scanner scan=new Scanner(System.in);
	String a=scan.next();
	//int c=scan.nextInt();
	int ans=0;
	if(a.charAt(6)<'5') {
		ans=1;
	}
	else{
	}
	if(a.charAt(5)=='1') {
		ans=0;
	}
	System.out.println(ans==1?"Heisei":"TBD");
	} main {
	Scanner scan=new Scanner(System.in);
	String a=scan.next();
	//int c=scan.nextInt();
	int ans=0;
	if(a.charAt(6)<'5') {
		ans=1;
	}
	else{
	}
	if(a.charAt(5)=='1') {
		ans=0;
	}
	System.out.println(ans==1?"Heisei":"TBD");
	} Scanner scan=new Scanner(System.in); scan new Scanner(System.in) String a=scan.next(); a scan.next() scan.next scan int ans=0; ans 0 if(a.charAt(6)<'5') {
		ans=1;
	}
	else{
	} a.charAt(6)<'5' a.charAt(6) a.charAt a 6 '5' {
		ans=1;
	} ans=1 ans 1 {
	} if(a.charAt(5)=='1') {
		ans=0;
	} a.charAt(5)=='1' a.charAt(5) a.charAt a 5 '1' {
		ans=0;
	} ans=0 ans 0 System.out.println(ans==1?"Heisei":"TBD") System.out.println System.out System System.out ans==1?"Heisei":"TBD" ans==1 ans 1 "Heisei" "TBD" String[]args args
import java.util.Scanner;
class Main{
	public static void main(String[]args) {
	Scanner scan=new Scanner(System.in);
	String a=scan.next();
	//int c=scan.nextInt();
	int ans=0;
	if(a.charAt(6)<'5') {
		ans=1;
	}
	else{
	}
	if(a.charAt(5)=='1') {
		ans=0;
	}
	System.out.println(ans==1?"Heisei":"TBD");
	}
}
