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

        String k = s.substring(5, 7);
        int m = Integer.parseInt(k);
        if (m > 4) {
            System.out.println("TBD");
            return;
        }
        System.out.println("Heisei");
    }
} import java.util.Scanner; Scanner java.util 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 k = s.substring(5, 7);
        int m = Integer.parseInt(k);
        if (m > 4) {
            System.out.println("TBD");
            return;
        }
        System.out.println("Heisei");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();

        String k = s.substring(5, 7);
        int m = Integer.parseInt(k);
        if (m > 4) {
            System.out.println("TBD");
            return;
        }
        System.out.println("Heisei");
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();

        String k = s.substring(5, 7);
        int m = Integer.parseInt(k);
        if (m > 4) {
            System.out.println("TBD");
            return;
        }
        System.out.println("Heisei");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String k = s.substring(5, 7); k s.substring(5, 7) s.substring s 5 7 int m = Integer.parseInt(k); m Integer.parseInt(k) Integer.parseInt Integer k if (m > 4) {
            System.out.println("TBD");
            return;
        } m > 4 m 4 {
            System.out.println("TBD");
            return;
        } System.out.println("TBD") System.out.println System.out System System.out "TBD" return; System.out.println("Heisei") System.out.println System.out System System.out "Heisei" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();

        String k = s.substring(5, 7);
        int m = Integer.parseInt(k);
        if (m > 4) {
            System.out.println("TBD");
            return;
        }
        System.out.println("Heisei");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();

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

        String k = s.substring(5, 7);
        int m = Integer.parseInt(k);
        if (m > 4) {
            System.out.println("TBD");
            return;
        }
        System.out.println("Heisei");
    }
}
