import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
import java.util.Scanner;

public class Main {

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

        try {
            DateTimeFormatter formatter = DateTimeFormatter.ofPattern("uuuu/MM/dd");
            LocalDate date = LocalDate.parse(sdate, formatter);
            LocalDate today = LocalDate.of(2019, 4, 30);
            int diff = date.compareTo(today);
            if (diff <= 0  ){
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }
        } catch (DateTimeParseException e) {
            System.out.println("入力値がyyyy/mm/dd形式ではありません");
        }
    }

} import java.time.LocalDate; LocalDate java.time import java.time.format.DateTimeFormatter; DateTimeFormatter java.time.format import java.time.format.DateTimeParseException; DateTimeParseException java.time.format import java.util.Scanner; Scanner java.util public class Main {

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

        try {
            DateTimeFormatter formatter = DateTimeFormatter.ofPattern("uuuu/MM/dd");
            LocalDate date = LocalDate.parse(sdate, formatter);
            LocalDate today = LocalDate.of(2019, 4, 30);
            int diff = date.compareTo(today);
            if (diff <= 0  ){
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }
        } catch (DateTimeParseException e) {
            System.out.println("入力値がyyyy/mm/dd形式ではありません");
        }
    }

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

        try {
            DateTimeFormatter formatter = DateTimeFormatter.ofPattern("uuuu/MM/dd");
            LocalDate date = LocalDate.parse(sdate, formatter);
            LocalDate today = LocalDate.of(2019, 4, 30);
            int diff = date.compareTo(today);
            if (diff <= 0  ){
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }
        } catch (DateTimeParseException e) {
            System.out.println("入力値がyyyy/mm/dd形式ではありません");
        }
    } main {
      	
      Scanner sc = new Scanner(System.in);	      
	  String sdate = sc.next();

        try {
            DateTimeFormatter formatter = DateTimeFormatter.ofPattern("uuuu/MM/dd");
            LocalDate date = LocalDate.parse(sdate, formatter);
            LocalDate today = LocalDate.of(2019, 4, 30);
            int diff = date.compareTo(today);
            if (diff <= 0  ){
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }
        } catch (DateTimeParseException e) {
            System.out.println("入力値がyyyy/mm/dd形式ではありません");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String sdate = sc.next(); sdate sc.next() sc.next sc try {
            DateTimeFormatter formatter = DateTimeFormatter.ofPattern("uuuu/MM/dd");
            LocalDate date = LocalDate.parse(sdate, formatter);
            LocalDate today = LocalDate.of(2019, 4, 30);
            int diff = date.compareTo(today);
            if (diff <= 0  ){
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }
        } catch (DateTimeParseException e) {
            System.out.println("入力値がyyyy/mm/dd形式ではありません");
        } catch (DateTimeParseException e) {
            System.out.println("入力値がyyyy/mm/dd形式ではありません");
        } DateTimeParseException e {
            System.out.println("入力値がyyyy/mm/dd形式ではありません");
        } System.out.println("入力値がyyyy/mm/dd形式ではありません") System.out.println System.out System System.out "入力値がyyyy/mm/dd形式ではありません" {
            DateTimeFormatter formatter = DateTimeFormatter.ofPattern("uuuu/MM/dd");
            LocalDate date = LocalDate.parse(sdate, formatter);
            LocalDate today = LocalDate.of(2019, 4, 30);
            int diff = date.compareTo(today);
            if (diff <= 0  ){
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }
        } DateTimeFormatter formatter = DateTimeFormatter.ofPattern("uuuu/MM/dd"); formatter DateTimeFormatter.ofPattern("uuuu/MM/dd") DateTimeFormatter.ofPattern DateTimeFormatter "uuuu/MM/dd" LocalDate date = LocalDate.parse(sdate, formatter); date LocalDate.parse(sdate, formatter) LocalDate.parse LocalDate sdate formatter LocalDate today = LocalDate.of(2019, 4, 30); today LocalDate.of(2019, 4, 30) LocalDate.of LocalDate 2019 4 30 int diff = date.compareTo(today); diff date.compareTo(today) date.compareTo date today if (diff <= 0  ){
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            } diff <= 0 diff 0 {
                System.out.println("Heisei");
            } System.out.println("Heisei") System.out.println System.out System System.out "Heisei" {
                System.out.println("TBD");
            } 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) {
      	
      Scanner sc = new Scanner(System.in);	      
	  String sdate = sc.next();

        try {
            DateTimeFormatter formatter = DateTimeFormatter.ofPattern("uuuu/MM/dd");
            LocalDate date = LocalDate.parse(sdate, formatter);
            LocalDate today = LocalDate.of(2019, 4, 30);
            int diff = date.compareTo(today);
            if (diff <= 0  ){
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }
        } catch (DateTimeParseException e) {
            System.out.println("入力値がyyyy/mm/dd形式ではありません");
        }
    }

} public class Main {

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

        try {
            DateTimeFormatter formatter = DateTimeFormatter.ofPattern("uuuu/MM/dd");
            LocalDate date = LocalDate.parse(sdate, formatter);
            LocalDate today = LocalDate.of(2019, 4, 30);
            int diff = date.compareTo(today);
            if (diff <= 0  ){
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }
        } catch (DateTimeParseException e) {
            System.out.println("入力値がyyyy/mm/dd形式ではありません");
        }
    }

} Main
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
import java.util.Scanner;

public class Main {

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

        try {
            DateTimeFormatter formatter = DateTimeFormatter.ofPattern("uuuu/MM/dd");
            LocalDate date = LocalDate.parse(sdate, formatter);
            LocalDate today = LocalDate.of(2019, 4, 30);
            int diff = date.compareTo(today);
            if (diff <= 0  ){
                System.out.println("Heisei");
            } else {
                System.out.println("TBD");
            }
        } catch (DateTimeParseException e) {
            System.out.println("入力値がyyyy/mm/dd形式ではありません");
        }
    }

}