import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String S = sc.next();
        String s = String.valueOf(S.charAt(5)) + String.valueOf(S.charAt(6));
        int n = Integer.parseInt(s);

        if(n<=4){
            System.out.println("Heisei");
        }
        else if(n>4){
            System.out.println("TBD");
        }
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String S = sc.next();
        String s = String.valueOf(S.charAt(5)) + String.valueOf(S.charAt(6));
        int n = Integer.parseInt(s);

        if(n<=4){
            System.out.println("Heisei");
        }
        else if(n>4){
            System.out.println("TBD");
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String S = sc.next();
        String s = String.valueOf(S.charAt(5)) + String.valueOf(S.charAt(6));
        int n = Integer.parseInt(s);

        if(n<=4){
            System.out.println("Heisei");
        }
        else if(n>4){
            System.out.println("TBD");
        }
    } main {
        Scanner sc = new Scanner(System.in);

        String S = sc.next();
        String s = String.valueOf(S.charAt(5)) + String.valueOf(S.charAt(6));
        int n = Integer.parseInt(s);

        if(n<=4){
            System.out.println("Heisei");
        }
        else if(n>4){
            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 = String.valueOf(S.charAt(5)) + String.valueOf(S.charAt(6)); s String.valueOf(S.charAt(5)) + String.valueOf(S.charAt(6)) String.valueOf(S.charAt(5)) String.valueOf String S.charAt(5) S.charAt S 5 String.valueOf(S.charAt(6)) String.valueOf String S.charAt(6) S.charAt S 6 int n = Integer.parseInt(s); n Integer.parseInt(s) Integer.parseInt Integer s if(n<=4){
            System.out.println("Heisei");
        }
        else if(n>4){
            System.out.println("TBD");
        } n<=4 n 4 {
            System.out.println("Heisei");
        } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" if(n>4){
            System.out.println("TBD");
        } n>4 n 4 {
            System.out.println("TBD");
        } System.out.println("TBD") System.out.println System.out System System.out "TBD" String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String S = sc.next();
        String s = String.valueOf(S.charAt(5)) + String.valueOf(S.charAt(6));
        int n = Integer.parseInt(s);

        if(n<=4){
            System.out.println("Heisei");
        }
        else if(n>4){
            System.out.println("TBD");
        }
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String S = sc.next();
        String s = String.valueOf(S.charAt(5)) + String.valueOf(S.charAt(6));
        int n = Integer.parseInt(s);

        if(n<=4){
            System.out.println("Heisei");
        }
        else if(n>4){
            System.out.println("TBD");
        }
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String S = sc.next();
        String s = String.valueOf(S.charAt(5)) + String.valueOf(S.charAt(6));
        int n = Integer.parseInt(s);

        if(n<=4){
            System.out.println("Heisei");
        }
        else if(n>4){
            System.out.println("TBD");
        }
    }
}