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

        String S[] = s.split("/");

        if(S[0].equals("2019") != true)
            System.out.println("Heisei");

        else{
            if(S[1].equals("01") || S[1].equals("02") || S[1].equals("03") || S[1].equals("04"))
                System.out.println("Heisei");
            else
                System.out.println("TBD");
        }
        
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.next();

        String S[] = s.split("/");

        if(S[0].equals("2019") != true)
            System.out.println("Heisei");

        else{
            if(S[1].equals("01") || S[1].equals("02") || S[1].equals("03") || S[1].equals("04"))
                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();

        String S[] = s.split("/");

        if(S[0].equals("2019") != true)
            System.out.println("Heisei");

        else{
            if(S[1].equals("01") || S[1].equals("02") || S[1].equals("03") || S[1].equals("04"))
                System.out.println("Heisei");
            else
                System.out.println("TBD");
        }
        
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();

        String S[] = s.split("/");

        if(S[0].equals("2019") != true)
            System.out.println("Heisei");

        else{
            if(S[1].equals("01") || S[1].equals("02") || S[1].equals("03") || S[1].equals("04"))
                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 String S[] = s.split("/"); S s.split("/") s.split s "/" if(S[0].equals("2019") != true)
            System.out.println("Heisei");

        else{
            if(S[1].equals("01") || S[1].equals("02") || S[1].equals("03") || S[1].equals("04"))
                System.out.println("Heisei");
            else
                System.out.println("TBD");
        } S[0].equals("2019") != true S[0].equals("2019") S[0].equals S[0] S 0 "2019" true System.out.println("Heisei") System.out.println System.out System System.out "Heisei" {
            if(S[1].equals("01") || S[1].equals("02") || S[1].equals("03") || S[1].equals("04"))
                System.out.println("Heisei");
            else
                System.out.println("TBD");
        } if(S[1].equals("01") || S[1].equals("02") || S[1].equals("03") || S[1].equals("04"))
                System.out.println("Heisei");
            else
                System.out.println("TBD"); S[1].equals("01") || S[1].equals("02") || S[1].equals("03") || S[1].equals("04") S[1].equals("03") S[1].equals("01") || S[1].equals("02") || S[1].equals("03") || S[1].equals("04") S[1].equals("01") S[1].equals S[1] S 1 "01" S[1].equals("02") S[1].equals S[1] S 1 "02" S[1].equals("03") S[1].equals S[1] S 1 "03" S[1].equals("04") S[1].equals S[1] S 1 "04" System.out.println("Heisei") System.out.println System.out System System.out "Heisei" System.out.println("TBD") System.out.println System.out System System.out "TBD" String[] args args
import java.util.*;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.next();

        String S[] = s.split("/");

        if(S[0].equals("2019") != true)
            System.out.println("Heisei");

        else{
            if(S[1].equals("01") || S[1].equals("02") || S[1].equals("03") || S[1].equals("04"))
                System.out.println("Heisei");
            else
                System.out.println("TBD");
        }
        
    }
}