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;
        }
    }
} import java.util.Scanner; Scanner java.util 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;
        }
    }
} Main private static final String HEISEI = "Heisei"; HEISEI "Heisei" private static final String TBD = "TBD"; TBD "TBD" public static String process(TestCase testCase) {
        final String S = testCase.S;
        final StillTbdDate date = StillTbdDate.fromString(S);
        return date.asHeiSeiOrTbd();
    } process {
        final String S = testCase.S;
        final StillTbdDate date = StillTbdDate.fromString(S);
        return date.asHeiSeiOrTbd();
    } final String S = testCase.S; S testCase.S testCase testCase.S final StillTbdDate date = StillTbdDate.fromString(S); date StillTbdDate.fromString(S) StillTbdDate.fromString StillTbdDate S return date.asHeiSeiOrTbd(); date.asHeiSeiOrTbd() date.asHeiSeiOrTbd date TestCase testCase testCase public static void main(String[] args) {
        TestCase testCase = readFromInput();

        final String result = process(testCase);

        output(result);
    } main {
        TestCase testCase = readFromInput();

        final String result = process(testCase);

        output(result);
    } TestCase testCase = readFromInput(); testCase readFromInput() readFromInput final String result = process(testCase); result process(testCase) process testCase output(result) output result String[] args args private static TestCase readFromInput() {
        Scanner sc = new Scanner(System.in);

        String S = sc.next();

        sc.close();
        return new TestCase(S);
    } readFromInput {
        Scanner sc = new Scanner(System.in);

        String S = sc.next();

        sc.close();
        return new TestCase(S);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc sc.close() sc.close sc return new TestCase(S); new TestCase(S) private static void output(String result) {
        System.out.println(result);
    } output {
        System.out.println(result);
    } System.out.println(result) System.out.println System.out System System.out result String result result 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;
        }
    } StillTbdDate private final int year; year private final int month; month private final int day; day private StillTbdDate(int year, int month, int day) {
            this.year = year;
            this.month = month;
            this.day = day;
        } StillTbdDate {
            this.year = year;
            this.month = month;
            this.day = day;
        } this.year = year this.year this this.year year this.month = month this.month this this.month month this.day = day this.day this this.day day int year year int month month int 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);
        } fromString {
            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);
        } final String[] parts = S.split("/"); parts S.split("/") S.split S "/" int year = Integer.parseInt(parts[0]); year Integer.parseInt(parts[0]) Integer.parseInt Integer parts[0] parts 0 int month = Integer.parseInt(parts[1]); month Integer.parseInt(parts[1]) Integer.parseInt Integer parts[1] parts 1 int day = Integer.parseInt(parts[2]); day Integer.parseInt(parts[2]) Integer.parseInt Integer parts[2] parts 2 return new StillTbdDate(year, month, day); new StillTbdDate(year, month, day) String S S public String asHeiSeiOrTbd() {
            if (isTbd(year, month, day)) {
                return TBD;
            } else {
                return HEISEI;
            }
        } asHeiSeiOrTbd {
            if (isTbd(year, month, day)) {
                return TBD;
            } else {
                return HEISEI;
            }
        } if (isTbd(year, month, day)) {
                return TBD;
            } else {
                return HEISEI;
            } isTbd(year, month, day) isTbd year month day {
                return TBD;
            } return TBD; TBD {
                return HEISEI;
            } return HEISEI; 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;
        } isTbd {
            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;
        } final boolean isAfterYear = year > 2019; isAfterYear year > 2019 year 2019 final boolean isAfterMonth = year == 2019 && month > 4; isAfterMonth year == 2019 && month > 4 year == 2019 year 2019 month > 4 month 4 final boolean isAfterDay = year == 2019 && month == 4 && day > 30; isAfterDay year == 2019 && month == 4 && day > 30 year == 2019 && month == 4 && day > 30 year == 2019 year 2019 month == 4 month 4 day > 30 day 30 return isAfterYear || isAfterMonth || isAfterDay; isAfterYear || isAfterMonth || isAfterDay isAfterYear || isAfterMonth || isAfterDay isAfterYear isAfterMonth isAfterDay int year year int month month int day day public static class TestCase {
        final String S;

        public TestCase(String S) {
            this.S = S;
        }
    } TestCase final String S; S public TestCase(String S) {
            this.S = S;
        } TestCase {
            this.S = S;
        } this.S = S this.S this this.S S String S S 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;
        }
    }
} 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;
        }
    }
} Main
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;
        }
    }
}
