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

        if(S.charAt(5) =='0' && S.charAt(6) =='1'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='2'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='3'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='4'){
	        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 sc = new Scanner(System.in);
        String S = sc.next();

        if(S.charAt(5) =='0' && S.charAt(6) =='1'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='2'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='3'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='4'){
	        System.out.println("Heisei");
	    }else{
	        System.out.println("TBD");	        
	    }
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        String S = sc.next();

        if(S.charAt(5) =='0' && S.charAt(6) =='1'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='2'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='3'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='4'){
	        System.out.println("Heisei");
	    }else{
	        System.out.println("TBD");	        
	    }
	} main {
		Scanner sc = new Scanner(System.in);
        String S = sc.next();

        if(S.charAt(5) =='0' && S.charAt(6) =='1'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='2'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='3'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='4'){
	        System.out.println("Heisei");
	    }else{
	        System.out.println("TBD");	        
	    }
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc if(S.charAt(5) =='0' && S.charAt(6) =='1'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='2'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='3'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='4'){
	        System.out.println("Heisei");
	    }else{
	        System.out.println("TBD");	        
	    } S.charAt(5) =='0' && S.charAt(6) =='1' S.charAt(5) =='0' S.charAt(5) S.charAt S 5 '0' S.charAt(6) =='1' S.charAt(6) S.charAt S 6 '1' {
	        System.out.println("Heisei");
	    } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if(S.charAt(5) =='0' && S.charAt(6) =='2'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='3'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='4'){
	        System.out.println("Heisei");
	    }else{
	        System.out.println("TBD");	        
	    } S.charAt(5) =='0' && S.charAt(6) =='2' S.charAt(5) =='0' S.charAt(5) S.charAt S 5 '0' S.charAt(6) =='2' S.charAt(6) S.charAt S 6 '2' {
	        System.out.println("Heisei");
	    } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if(S.charAt(5) =='0' && S.charAt(6) =='3'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='4'){
	        System.out.println("Heisei");
	    }else{
	        System.out.println("TBD");	        
	    } S.charAt(5) =='0' && S.charAt(6) =='3' S.charAt(5) =='0' S.charAt(5) S.charAt S 5 '0' S.charAt(6) =='3' S.charAt(6) S.charAt S 6 '3' {
	        System.out.println("Heisei");
	    } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if(S.charAt(5) =='0' && S.charAt(6) =='4'){
	        System.out.println("Heisei");
	    }else{
	        System.out.println("TBD");	        
	    } S.charAt(5) =='0' && S.charAt(6) =='4' S.charAt(5) =='0' S.charAt(5) S.charAt S 5 '0' S.charAt(6) =='4' S.charAt(6) S.charAt S 6 '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 public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        String S = sc.next();

        if(S.charAt(5) =='0' && S.charAt(6) =='1'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='2'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='3'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='4'){
	        System.out.println("Heisei");
	    }else{
	        System.out.println("TBD");	        
	    }
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        String S = sc.next();

        if(S.charAt(5) =='0' && S.charAt(6) =='1'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='2'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='3'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='4'){
	        System.out.println("Heisei");
	    }else{
	        System.out.println("TBD");	        
	    }
	}
} Main
import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        String S = sc.next();

        if(S.charAt(5) =='0' && S.charAt(6) =='1'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='2'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='3'){
	        System.out.println("Heisei");
	    }else if(S.charAt(5) =='0' && S.charAt(6) =='4'){
	        System.out.println("Heisei");
	    }else{
	        System.out.println("TBD");	        
	    }
	}
}
