import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");
        try (Scanner sc = new Scanner(System.in)) {
            if (sc.hasNext()) {
                String s = sc.next();
                Date date = format.parse(s);
                switch (date.compareTo(format.parse("2019/04/30"))) {
                    case -1:
                    case 0:
                        System.out.println("Heisei");
                        break;
                    default:
                        System.out.println("TBD");
                }
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
} import java.text.ParseException; ParseException java.text import java.text.SimpleDateFormat; SimpleDateFormat java.text import java.util.Date; Date java.util import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");
        try (Scanner sc = new Scanner(System.in)) {
            if (sc.hasNext()) {
                String s = sc.next();
                Date date = format.parse(s);
                switch (date.compareTo(format.parse("2019/04/30"))) {
                    case -1:
                    case 0:
                        System.out.println("Heisei");
                        break;
                    default:
                        System.out.println("TBD");
                }
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
} Main public static void main(String[] args) {
        SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");
        try (Scanner sc = new Scanner(System.in)) {
            if (sc.hasNext()) {
                String s = sc.next();
                Date date = format.parse(s);
                switch (date.compareTo(format.parse("2019/04/30"))) {
                    case -1:
                    case 0:
                        System.out.println("Heisei");
                        break;
                    default:
                        System.out.println("TBD");
                }
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
    } main {
        SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");
        try (Scanner sc = new Scanner(System.in)) {
            if (sc.hasNext()) {
                String s = sc.next();
                Date date = format.parse(s);
                switch (date.compareTo(format.parse("2019/04/30"))) {
                    case -1:
                    case 0:
                        System.out.println("Heisei");
                        break;
                    default:
                        System.out.println("TBD");
                }
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
    } SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd"); format new SimpleDateFormat("yyyy/MM/dd") try (Scanner sc = new Scanner(System.in)) {
            if (sc.hasNext()) {
                String s = sc.next();
                Date date = format.parse(s);
                switch (date.compareTo(format.parse("2019/04/30"))) {
                    case -1:
                    case 0:
                        System.out.println("Heisei");
                        break;
                    default:
                        System.out.println("TBD");
                }
            }
        } catch (ParseException e) {
            e.printStackTrace();
        } catch (ParseException e) {
            e.printStackTrace();
        } ParseException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            if (sc.hasNext()) {
                String s = sc.next();
                Date date = format.parse(s);
                switch (date.compareTo(format.parse("2019/04/30"))) {
                    case -1:
                    case 0:
                        System.out.println("Heisei");
                        break;
                    default:
                        System.out.println("TBD");
                }
            }
        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) if (sc.hasNext()) {
                String s = sc.next();
                Date date = format.parse(s);
                switch (date.compareTo(format.parse("2019/04/30"))) {
                    case -1:
                    case 0:
                        System.out.println("Heisei");
                        break;
                    default:
                        System.out.println("TBD");
                }
            } sc.hasNext() sc.hasNext sc {
                String s = sc.next();
                Date date = format.parse(s);
                switch (date.compareTo(format.parse("2019/04/30"))) {
                    case -1:
                    case 0:
                        System.out.println("Heisei");
                        break;
                    default:
                        System.out.println("TBD");
                }
            } String s = sc.next(); s sc.next() sc.next sc Date date = format.parse(s); date format.parse(s) format.parse format s switch (date.compareTo(format.parse("2019/04/30"))) {
                    case -1:
                    case 0:
                        System.out.println("Heisei");
                        break;
                    default:
                        System.out.println("TBD");
                } date.compareTo(format.parse("2019/04/30")) date.compareTo date format.parse("2019/04/30") format.parse format "2019/04/30" case -1: -1 1 case -1: case 0: 0 case 0: System.out.println("Heisei") System.out.println System.out System System.out "Heisei" break; default: default: System.out.println("TBD") System.out.println System.out System System.out "TBD" String[] args args public class Main {

    public static void main(String[] args) {
        SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");
        try (Scanner sc = new Scanner(System.in)) {
            if (sc.hasNext()) {
                String s = sc.next();
                Date date = format.parse(s);
                switch (date.compareTo(format.parse("2019/04/30"))) {
                    case -1:
                    case 0:
                        System.out.println("Heisei");
                        break;
                    default:
                        System.out.println("TBD");
                }
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
} public class Main {

    public static void main(String[] args) {
        SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");
        try (Scanner sc = new Scanner(System.in)) {
            if (sc.hasNext()) {
                String s = sc.next();
                Date date = format.parse(s);
                switch (date.compareTo(format.parse("2019/04/30"))) {
                    case -1:
                    case 0:
                        System.out.println("Heisei");
                        break;
                    default:
                        System.out.println("TBD");
                }
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
} Main
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");
        try (Scanner sc = new Scanner(System.in)) {
            if (sc.hasNext()) {
                String s = sc.next();
                Date date = format.parse(s);
                switch (date.compareTo(format.parse("2019/04/30"))) {
                    case -1:
                    case 0:
                        System.out.println("Heisei");
                        break;
                    default:
                        System.out.println("TBD");
                }
            }
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
}
