import java.util.Scanner;

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

        String[] s = sc.next().split("/", 3);

        int y = Integer.valueOf(s[0]);
        int m = Integer.valueOf(s[1]);
        int d = Integer.valueOf(s[2]);

        boolean ans = false;
        if (y > 2019)
            ans = true;
        else {
            if (y == 2019) {
                if (m > 4)
                    ans = true;
            }
        }
        System.out.println(ans ? "TBD" : "Heisei");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String[] s = sc.next().split("/", 3);

        int y = Integer.valueOf(s[0]);
        int m = Integer.valueOf(s[1]);
        int d = Integer.valueOf(s[2]);

        boolean ans = false;
        if (y > 2019)
            ans = true;
        else {
            if (y == 2019) {
                if (m > 4)
                    ans = true;
            }
        }
        System.out.println(ans ? "TBD" : "Heisei");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String[] s = sc.next().split("/", 3);

        int y = Integer.valueOf(s[0]);
        int m = Integer.valueOf(s[1]);
        int d = Integer.valueOf(s[2]);

        boolean ans = false;
        if (y > 2019)
            ans = true;
        else {
            if (y == 2019) {
                if (m > 4)
                    ans = true;
            }
        }
        System.out.println(ans ? "TBD" : "Heisei");
    } main {
        Scanner sc = new Scanner(System.in);

        String[] s = sc.next().split("/", 3);

        int y = Integer.valueOf(s[0]);
        int m = Integer.valueOf(s[1]);
        int d = Integer.valueOf(s[2]);

        boolean ans = false;
        if (y > 2019)
            ans = true;
        else {
            if (y == 2019) {
                if (m > 4)
                    ans = true;
            }
        }
        System.out.println(ans ? "TBD" : "Heisei");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] s = sc.next().split("/", 3); s sc.next().split("/", 3) sc.next().split sc.next() sc.next sc "/" 3 int y = Integer.valueOf(s[0]); y Integer.valueOf(s[0]) Integer.valueOf Integer s[0] s 0 int m = Integer.valueOf(s[1]); m Integer.valueOf(s[1]) Integer.valueOf Integer s[1] s 1 int d = Integer.valueOf(s[2]); d Integer.valueOf(s[2]) Integer.valueOf Integer s[2] s 2 boolean ans = false; ans false if (y > 2019)
            ans = true;
        else {
            if (y == 2019) {
                if (m > 4)
                    ans = true;
            }
        } y > 2019 y 2019 ans = true ans true {
            if (y == 2019) {
                if (m > 4)
                    ans = true;
            }
        } if (y == 2019) {
                if (m > 4)
                    ans = true;
            } y == 2019 y 2019 {
                if (m > 4)
                    ans = true;
            } if (m > 4)
                    ans = true; m > 4 m 4 ans = true ans true System.out.println(ans ? "TBD" : "Heisei") System.out.println System.out System System.out ans ? "TBD" : "Heisei" ans "TBD" "Heisei" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String[] s = sc.next().split("/", 3);

        int y = Integer.valueOf(s[0]);
        int m = Integer.valueOf(s[1]);
        int d = Integer.valueOf(s[2]);

        boolean ans = false;
        if (y > 2019)
            ans = true;
        else {
            if (y == 2019) {
                if (m > 4)
                    ans = true;
            }
        }
        System.out.println(ans ? "TBD" : "Heisei");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String[] s = sc.next().split("/", 3);

        int y = Integer.valueOf(s[0]);
        int m = Integer.valueOf(s[1]);
        int d = Integer.valueOf(s[2]);

        boolean ans = false;
        if (y > 2019)
            ans = true;
        else {
            if (y == 2019) {
                if (m > 4)
                    ans = true;
            }
        }
        System.out.println(ans ? "TBD" : "Heisei");
    }
} Main
import java.util.Scanner;

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

        String[] s = sc.next().split("/", 3);

        int y = Integer.valueOf(s[0]);
        int m = Integer.valueOf(s[1]);
        int d = Integer.valueOf(s[2]);

        boolean ans = false;
        if (y > 2019)
            ans = true;
        else {
            if (y == 2019) {
                if (m > 4)
                    ans = true;
            }
        }
        System.out.println(ans ? "TBD" : "Heisei");
    }
}
