import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sca=new Scanner(System.in);
		String a=sca.next();

int c=Integer.parseInt(a.substring(5,7));
if(c<=4) {
	System.out.println("Heisei");
}
else {
	System.out.println("TBD");
}
	}

} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner sca=new Scanner(System.in);
		String a=sca.next();

int c=Integer.parseInt(a.substring(5,7));
if(c<=4) {
	System.out.println("Heisei");
}
else {
	System.out.println("TBD");
}
	}

} Main public static void main(String[] args) {
		Scanner sca=new Scanner(System.in);
		String a=sca.next();

int c=Integer.parseInt(a.substring(5,7));
if(c<=4) {
	System.out.println("Heisei");
}
else {
	System.out.println("TBD");
}
	} main {
		Scanner sca=new Scanner(System.in);
		String a=sca.next();

int c=Integer.parseInt(a.substring(5,7));
if(c<=4) {
	System.out.println("Heisei");
}
else {
	System.out.println("TBD");
}
	} Scanner sca=new Scanner(System.in); sca new Scanner(System.in) String a=sca.next(); a sca.next() sca.next sca int c=Integer.parseInt(a.substring(5,7)); c Integer.parseInt(a.substring(5,7)) Integer.parseInt Integer a.substring(5,7) a.substring a 5 7 if(c<=4) {
	System.out.println("Heisei");
}
else {
	System.out.println("TBD");
} c<=4 c 4 {
	System.out.println("Heisei");
} System.out.println("Heisei") System.out.println System.out System System.out "Heisei" {
	System.out.println("TBD");
} System.out.println("TBD") System.out.println System.out System System.out "TBD" String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sca=new Scanner(System.in);
		String a=sca.next();

int c=Integer.parseInt(a.substring(5,7));
if(c<=4) {
	System.out.println("Heisei");
}
else {
	System.out.println("TBD");
}
	}

}
