import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		long a=20190430;
		String[] fruit = s.split("/", 0);
		String ans="";
		for(int i = 0; i<3; i++){
			ans+=fruit[i];
		}
		if(a<Long.parseLong(ans)){
			System.out.println("TBD");
		}else{
			System.out.println("Heisei");
		}
	}
} 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();
		long a=20190430;
		String[] fruit = s.split("/", 0);
		String ans="";
		for(int i = 0; i<3; i++){
			ans+=fruit[i];
		}
		if(a<Long.parseLong(ans)){
			System.out.println("TBD");
		}else{
			System.out.println("Heisei");
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		long a=20190430;
		String[] fruit = s.split("/", 0);
		String ans="";
		for(int i = 0; i<3; i++){
			ans+=fruit[i];
		}
		if(a<Long.parseLong(ans)){
			System.out.println("TBD");
		}else{
			System.out.println("Heisei");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		long a=20190430;
		String[] fruit = s.split("/", 0);
		String ans="";
		for(int i = 0; i<3; i++){
			ans+=fruit[i];
		}
		if(a<Long.parseLong(ans)){
			System.out.println("TBD");
		}else{
			System.out.println("Heisei");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc long a=20190430; a 20190430 String[] fruit = s.split("/", 0); fruit s.split("/", 0) s.split s "/" 0 String ans=""; ans "" for(int i = 0; i<3; i++){
			ans+=fruit[i];
		} int i = 0; int i = 0; i 0 i<3 i 3 i++ i++ i {
			ans+=fruit[i];
		} {
			ans+=fruit[i];
		} ans+=fruit[i] ans fruit[i] fruit i if(a<Long.parseLong(ans)){
			System.out.println("TBD");
		}else{
			System.out.println("Heisei");
		} a<Long.parseLong(ans) a Long.parseLong(ans) Long.parseLong Long ans {
			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" String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		long a=20190430;
		String[] fruit = s.split("/", 0);
		String ans="";
		for(int i = 0; i<3; i++){
			ans+=fruit[i];
		}
		if(a<Long.parseLong(ans)){
			System.out.println("TBD");
		}else{
			System.out.println("Heisei");
		}
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		long a=20190430;
		String[] fruit = s.split("/", 0);
		String ans="";
		for(int i = 0; i<3; i++){
			ans+=fruit[i];
		}
		if(a<Long.parseLong(ans)){
			System.out.println("TBD");
		}else{
			System.out.println("Heisei");
		}
	}
} Main
import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		long a=20190430;
		String[] fruit = s.split("/", 0);
		String ans="";
		for(int i = 0; i<3; i++){
			ans+=fruit[i];
		}
		if(a<Long.parseLong(ans)){
			System.out.println("TBD");
		}else{
			System.out.println("Heisei");
		}
	}
}