import java.util.*;

class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        String a = inp.next();
        String b = a.substring(5, 7);
        int n = Integer.parseInt(b);
        if (n > 4) System.out.println("TBD");
        else System.out.println("Heisei");
        inp.close();
    }
} import java.util.*; util.* java class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        String a = inp.next();
        String b = a.substring(5, 7);
        int n = Integer.parseInt(b);
        if (n > 4) System.out.println("TBD");
        else System.out.println("Heisei");
        inp.close();
    }
} Main public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        String a = inp.next();
        String b = a.substring(5, 7);
        int n = Integer.parseInt(b);
        if (n > 4) System.out.println("TBD");
        else System.out.println("Heisei");
        inp.close();
    } main {
        Scanner inp = new Scanner(System.in);
        String a = inp.next();
        String b = a.substring(5, 7);
        int n = Integer.parseInt(b);
        if (n > 4) System.out.println("TBD");
        else System.out.println("Heisei");
        inp.close();
    } Scanner inp = new Scanner(System.in); inp new Scanner(System.in) String a = inp.next(); a inp.next() inp.next inp String b = a.substring(5, 7); b a.substring(5, 7) a.substring a 5 7 int n = Integer.parseInt(b); n Integer.parseInt(b) Integer.parseInt Integer b if (n > 4) System.out.println("TBD");
        else System.out.println("Heisei"); n > 4 n 4 System.out.println("TBD") System.out.println System.out System System.out "TBD" System.out.println("Heisei") System.out.println System.out System System.out "Heisei" inp.close() inp.close inp String args[] args
import java.util.*;

class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        String a = inp.next();
        String b = a.substring(5, 7);
        int n = Integer.parseInt(b);
        if (n > 4) System.out.println("TBD");
        else System.out.println("Heisei");
        inp.close();
    }
}
