import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int month = Integer.parseInt(s.substring(5,7));
        if(month<=4){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
        sc.close();
    }
    
} 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();
        int month = Integer.parseInt(s.substring(5,7));
        if(month<=4){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
        sc.close();
    }
    
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int month = Integer.parseInt(s.substring(5,7));
        if(month<=4){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int month = Integer.parseInt(s.substring(5,7));
        if(month<=4){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int month = Integer.parseInt(s.substring(5,7)); month Integer.parseInt(s.substring(5,7)) Integer.parseInt Integer s.substring(5,7) s.substring s 5 7 if(month<=4){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        } month<=4 month 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" sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int month = Integer.parseInt(s.substring(5,7));
        if(month<=4){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
        sc.close();
    }
    
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int month = Integer.parseInt(s.substring(5,7));
        if(month<=4){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
        sc.close();
    }
    
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int month = Integer.parseInt(s.substring(5,7));
        if(month<=4){
            System.out.println("Heisei");
        }else{
            System.out.println("TBD");
        }
        sc.close();
    }
    
}