import java.util.Scanner;

public class Main {
    private static StringBuilder sb;

    public static void main(String[] args) {
        init();

        String result = "TBD";
        int slash1 = sb.indexOf("/", 0);
        int slash2 = sb.indexOf("/", slash1 + 1);

        int year = Integer.parseInt(sb.substring(0, slash1));
        int month = Integer.parseInt(sb.substring(slash1 + 1, slash2));

        if (year < 2019) {
            result = "Heisei";
        } else if (year == 2019) {
            if (month <= 4) {
                result = "Heisei";
            }
        }

        System.out.println(result);
    }

    public static void init() {
        Scanner scanner = new Scanner(System.in);
        sb = new StringBuilder(scanner.next());
    }
} import java.util.Scanner; Scanner java.util public class Main {
    private static StringBuilder sb;

    public static void main(String[] args) {
        init();

        String result = "TBD";
        int slash1 = sb.indexOf("/", 0);
        int slash2 = sb.indexOf("/", slash1 + 1);

        int year = Integer.parseInt(sb.substring(0, slash1));
        int month = Integer.parseInt(sb.substring(slash1 + 1, slash2));

        if (year < 2019) {
            result = "Heisei";
        } else if (year == 2019) {
            if (month <= 4) {
                result = "Heisei";
            }
        }

        System.out.println(result);
    }

    public static void init() {
        Scanner scanner = new Scanner(System.in);
        sb = new StringBuilder(scanner.next());
    }
} Main private static StringBuilder sb; sb public static void main(String[] args) {
        init();

        String result = "TBD";
        int slash1 = sb.indexOf("/", 0);
        int slash2 = sb.indexOf("/", slash1 + 1);

        int year = Integer.parseInt(sb.substring(0, slash1));
        int month = Integer.parseInt(sb.substring(slash1 + 1, slash2));

        if (year < 2019) {
            result = "Heisei";
        } else if (year == 2019) {
            if (month <= 4) {
                result = "Heisei";
            }
        }

        System.out.println(result);
    } main {
        init();

        String result = "TBD";
        int slash1 = sb.indexOf("/", 0);
        int slash2 = sb.indexOf("/", slash1 + 1);

        int year = Integer.parseInt(sb.substring(0, slash1));
        int month = Integer.parseInt(sb.substring(slash1 + 1, slash2));

        if (year < 2019) {
            result = "Heisei";
        } else if (year == 2019) {
            if (month <= 4) {
                result = "Heisei";
            }
        }

        System.out.println(result);
    } init() init String result = "TBD"; result "TBD" int slash1 = sb.indexOf("/", 0); slash1 sb.indexOf("/", 0) sb.indexOf sb "/" 0 int slash2 = sb.indexOf("/", slash1 + 1); slash2 sb.indexOf("/", slash1 + 1) sb.indexOf sb "/" slash1 + 1 slash1 1 int year = Integer.parseInt(sb.substring(0, slash1)); year Integer.parseInt(sb.substring(0, slash1)) Integer.parseInt Integer sb.substring(0, slash1) sb.substring sb 0 slash1 int month = Integer.parseInt(sb.substring(slash1 + 1, slash2)); month Integer.parseInt(sb.substring(slash1 + 1, slash2)) Integer.parseInt Integer sb.substring(slash1 + 1, slash2) sb.substring sb slash1 + 1 slash1 1 slash2 if (year < 2019) {
            result = "Heisei";
        } else if (year == 2019) {
            if (month <= 4) {
                result = "Heisei";
            }
        } year < 2019 year 2019 {
            result = "Heisei";
        } result = "Heisei" result "Heisei" if (year == 2019) {
            if (month <= 4) {
                result = "Heisei";
            }
        } year == 2019 year 2019 {
            if (month <= 4) {
                result = "Heisei";
            }
        } if (month <= 4) {
                result = "Heisei";
            } month <= 4 month 4 {
                result = "Heisei";
            } result = "Heisei" result "Heisei" System.out.println(result) System.out.println System.out System System.out result String[] args args public static void init() {
        Scanner scanner = new Scanner(System.in);
        sb = new StringBuilder(scanner.next());
    } init {
        Scanner scanner = new Scanner(System.in);
        sb = new StringBuilder(scanner.next());
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) sb = new StringBuilder(scanner.next()) sb new StringBuilder(scanner.next()) public class Main {
    private static StringBuilder sb;

    public static void main(String[] args) {
        init();

        String result = "TBD";
        int slash1 = sb.indexOf("/", 0);
        int slash2 = sb.indexOf("/", slash1 + 1);

        int year = Integer.parseInt(sb.substring(0, slash1));
        int month = Integer.parseInt(sb.substring(slash1 + 1, slash2));

        if (year < 2019) {
            result = "Heisei";
        } else if (year == 2019) {
            if (month <= 4) {
                result = "Heisei";
            }
        }

        System.out.println(result);
    }

    public static void init() {
        Scanner scanner = new Scanner(System.in);
        sb = new StringBuilder(scanner.next());
    }
} public class Main {
    private static StringBuilder sb;

    public static void main(String[] args) {
        init();

        String result = "TBD";
        int slash1 = sb.indexOf("/", 0);
        int slash2 = sb.indexOf("/", slash1 + 1);

        int year = Integer.parseInt(sb.substring(0, slash1));
        int month = Integer.parseInt(sb.substring(slash1 + 1, slash2));

        if (year < 2019) {
            result = "Heisei";
        } else if (year == 2019) {
            if (month <= 4) {
                result = "Heisei";
            }
        }

        System.out.println(result);
    }

    public static void init() {
        Scanner scanner = new Scanner(System.in);
        sb = new StringBuilder(scanner.next());
    }
} Main
import java.util.Scanner;

public class Main {
    private static StringBuilder sb;

    public static void main(String[] args) {
        init();

        String result = "TBD";
        int slash1 = sb.indexOf("/", 0);
        int slash2 = sb.indexOf("/", slash1 + 1);

        int year = Integer.parseInt(sb.substring(0, slash1));
        int month = Integer.parseInt(sb.substring(slash1 + 1, slash2));

        if (year < 2019) {
            result = "Heisei";
        } else if (year == 2019) {
            if (month <= 4) {
                result = "Heisei";
            }
        }

        System.out.println(result);
    }

    public static void init() {
        Scanner scanner = new Scanner(System.in);
        sb = new StringBuilder(scanner.next());
    }
}