import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s=sc.next();
        if(Character.getNumericValue(s.charAt(5))==1||Character.getNumericValue(s.charAt(6))>4){
            System.out.println("TBD");
        }else{
            System.out.println("Heisei");
        }
    }

} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s=sc.next();
        if(Character.getNumericValue(s.charAt(5))==1||Character.getNumericValue(s.charAt(6))>4){
            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();
        if(Character.getNumericValue(s.charAt(5))==1||Character.getNumericValue(s.charAt(6))>4){
            System.out.println("TBD");
        }else{
            System.out.println("Heisei");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String s=sc.next();
        if(Character.getNumericValue(s.charAt(5))==1||Character.getNumericValue(s.charAt(6))>4){
            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 if(Character.getNumericValue(s.charAt(5))==1||Character.getNumericValue(s.charAt(6))>4){
            System.out.println("TBD");
        }else{
            System.out.println("Heisei");
        } Character.getNumericValue(s.charAt(5))==1||Character.getNumericValue(s.charAt(6))>4 Character.getNumericValue(s.charAt(5))==1 Character.getNumericValue(s.charAt(5)) Character.getNumericValue Character s.charAt(5) s.charAt s 5 1 Character.getNumericValue(s.charAt(6))>4 Character.getNumericValue(s.charAt(6)) Character.getNumericValue Character s.charAt(6) s.charAt s 6 4 {
            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();
        if(Character.getNumericValue(s.charAt(5))==1||Character.getNumericValue(s.charAt(6))>4){
            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();
        if(Character.getNumericValue(s.charAt(5))==1||Character.getNumericValue(s.charAt(6))>4){
            System.out.println("TBD");
        }else{
            System.out.println("Heisei");
        }
    }

} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s=sc.next();
        if(Character.getNumericValue(s.charAt(5))==1||Character.getNumericValue(s.charAt(6))>4){
            System.out.println("TBD");
        }else{
            System.out.println("Heisei");
        }
    }

}