import java.util.Scanner;

public class Main {
    private static final String HEISEI = "Heisei";
    private static final String TBD = "TBD";

    public static String process(TestCase testCase) {
        final String S = testCase.S;
        final StillTbdDate date = StillTbdDate.fromString(S);
        return date.asHeiSeiOrTbd();
    }

    private static class StillTbdDate {
        private final int year;
        private final int month;
        private final int day;

        private StillTbdDate(int year, int month, int day) {
            this.year = year;
            this.month = month;
            this.day = day;
        }

        public static StillTbdDate fromString(String S) {
            final String[] parts = S.split("/");
            int year = Integer.parseInt(parts[0]);
            int month = Integer.parseInt(parts[1]);
            int day = Integer.parseInt(parts[2]);

            return new StillTbdDate(year, month, day);
        }

        public String asHeiSeiOrTbd() {
            if (isTbd(year, month, day)) {
                return TBD;
            } else {
                return HEISEI;
            }
        }

        private boolean isTbd(int year, int month, int day) {
            final boolean isAfterYear = year > 2019;
            final boolean isAfterMonth = year == 2019 && month > 4;
            final boolean isAfterDay = year == 2019 && month == 4 && day > 30;
            return isAfterYear || isAfterMonth || isAfterDay;
        }
    }


    // Util func

    public static void main(String[] args) {
        TestCase testCase = readFromInput();

        final String result = process(testCase);

        output(result);
    }

    private static TestCase readFromInput() {
        Scanner sc = new Scanner(System.in);

        String S = sc.next();

        sc.close();
        return new TestCase(S);
    }

    private static void output(String result) {
        System.out.println(result);
    }

    public static class TestCase {
        final String S;

        public TestCase(String S) {
            this.S = S;
        }
    }
}

/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz