import java.text.SimpleDateFormat;

public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) throws Exception {
        System.out.println(new SimpleDateFormat("yyyy/MM/dd").parse(scanner.next()).getTime() <= 1556550000000L ? "Heisei" : "TBD");
    }
} import java.text.SimpleDateFormat; SimpleDateFormat java.text public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) throws Exception {
        System.out.println(new SimpleDateFormat("yyyy/MM/dd").parse(scanner.next()).getTime() <= 1556550000000L ? "Heisei" : "TBD");
    }
} Main private static java.util.Scanner scanner = new java.util.Scanner(System.in); scanner new java.util.Scanner(System.in) public static void main(String[] args) throws Exception {
        System.out.println(new SimpleDateFormat("yyyy/MM/dd").parse(scanner.next()).getTime() <= 1556550000000L ? "Heisei" : "TBD");
    } main {
        System.out.println(new SimpleDateFormat("yyyy/MM/dd").parse(scanner.next()).getTime() <= 1556550000000L ? "Heisei" : "TBD");
    } System.out.println(new SimpleDateFormat("yyyy/MM/dd").parse(scanner.next()).getTime() <= 1556550000000L ? "Heisei" : "TBD") System.out.println System.out System System.out new SimpleDateFormat("yyyy/MM/dd").parse(scanner.next()).getTime() <= 1556550000000L ? "Heisei" : "TBD" new SimpleDateFormat("yyyy/MM/dd").parse(scanner.next()).getTime() <= 1556550000000L new SimpleDateFormat("yyyy/MM/dd").parse(scanner.next()).getTime() new SimpleDateFormat("yyyy/MM/dd").parse(scanner.next()).getTime new SimpleDateFormat("yyyy/MM/dd").parse(scanner.next()) new SimpleDateFormat("yyyy/MM/dd").parse new SimpleDateFormat("yyyy/MM/dd") scanner.next() scanner.next scanner 1556550000000L "Heisei" "TBD" String[] args args public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) throws Exception {
        System.out.println(new SimpleDateFormat("yyyy/MM/dd").parse(scanner.next()).getTime() <= 1556550000000L ? "Heisei" : "TBD");
    }
} public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) throws Exception {
        System.out.println(new SimpleDateFormat("yyyy/MM/dd").parse(scanner.next()).getTime() <= 1556550000000L ? "Heisei" : "TBD");
    }
} Main
import java.text.SimpleDateFormat;

public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) throws Exception {
        System.out.println(new SimpleDateFormat("yyyy/MM/dd").parse(scanner.next()).getTime() <= 1556550000000L ? "Heisei" : "TBD");
    }
}