import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner= new Scanner(System.in);
        String s = scanner.next(), ans = "Heisei";
        if(s.charAt(5) == '1')ans = "TBD";
        else if(s.charAt(6) > '4')ans = "TBD";

        System.out.println(ans);
    }

} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner scanner= new Scanner(System.in);
        String s = scanner.next(), ans = "Heisei";
        if(s.charAt(5) == '1')ans = "TBD";
        else if(s.charAt(6) > '4')ans = "TBD";

        System.out.println(ans);
    }

} Main public static void main(String[] args){
        Scanner scanner= new Scanner(System.in);
        String s = scanner.next(), ans = "Heisei";
        if(s.charAt(5) == '1')ans = "TBD";
        else if(s.charAt(6) > '4')ans = "TBD";

        System.out.println(ans);
    } main {
        Scanner scanner= new Scanner(System.in);
        String s = scanner.next(), ans = "Heisei";
        if(s.charAt(5) == '1')ans = "TBD";
        else if(s.charAt(6) > '4')ans = "TBD";

        System.out.println(ans);
    } Scanner scanner= new Scanner(System.in); scanner new Scanner(System.in) String s = scanner.next() s scanner.next() scanner.next scanner ans = "Heisei"; ans "Heisei" if(s.charAt(5) == '1')ans = "TBD";
        else if(s.charAt(6) > '4')ans = "TBD"; s.charAt(5) == '1' s.charAt(5) s.charAt s 5 '1' ans = "TBD" ans "TBD" if(s.charAt(6) > '4')ans = "TBD"; s.charAt(6) > '4' s.charAt(6) s.charAt s 6 '4' ans = "TBD" ans "TBD" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{
    public static void main(String[] args){
        Scanner scanner= new Scanner(System.in);
        String s = scanner.next(), ans = "Heisei";
        if(s.charAt(5) == '1')ans = "TBD";
        else if(s.charAt(6) > '4')ans = "TBD";

        System.out.println(ans);
    }

} public class Main{
    public static void main(String[] args){
        Scanner scanner= new Scanner(System.in);
        String s = scanner.next(), ans = "Heisei";
        if(s.charAt(5) == '1')ans = "TBD";
        else if(s.charAt(6) > '4')ans = "TBD";

        System.out.println(ans);
    }

} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner= new Scanner(System.in);
        String s = scanner.next(), ans = "Heisei";
        if(s.charAt(5) == '1')ans = "TBD";
        else if(s.charAt(6) > '4')ans = "TBD";

        System.out.println(ans);
    }

}
