import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int m = Integer.parseInt(s.substring(5, 7));
        System.out.println(m <= 4 ? "Heisei" : "TBD");
        scan.close();
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int m = Integer.parseInt(s.substring(5, 7));
        System.out.println(m <= 4 ? "Heisei" : "TBD");
        scan.close();
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int m = Integer.parseInt(s.substring(5, 7));
        System.out.println(m <= 4 ? "Heisei" : "TBD");
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int m = Integer.parseInt(s.substring(5, 7));
        System.out.println(m <= 4 ? "Heisei" : "TBD");
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s = scan.next(); s scan.next() scan.next scan int m = Integer.parseInt(s.substring(5, 7)); m Integer.parseInt(s.substring(5, 7)) Integer.parseInt Integer s.substring(5, 7) s.substring s 5 7 System.out.println(m <= 4 ? "Heisei" : "TBD") System.out.println System.out System System.out m <= 4 ? "Heisei" : "TBD" m <= 4 m 4 "Heisei" "TBD" scan.close() scan.close scan String[] args args public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int m = Integer.parseInt(s.substring(5, 7));
        System.out.println(m <= 4 ? "Heisei" : "TBD");
        scan.close();
    }
} public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int m = Integer.parseInt(s.substring(5, 7));
        System.out.println(m <= 4 ? "Heisei" : "TBD");
        scan.close();
    }
} Main
import java.util.*;

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