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

public class Main {
  public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);
    String dateStr = sc.next();

    DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
    LocalDate date = LocalDate.parse(dateStr, formatter);
    LocalDate reiwa = LocalDate.of(2019, 4, 30);

    System.out.println(date.isAfter(reiwa) ? "TBD" : "Heisei" );

  }
} import java.util.Scanner; Scanner java.util import java.util.Locale; Locale java.util import java.time.LocalDate; LocalDate java.time import java.time.format.DateTimeFormatter; DateTimeFormatter java.time.format public class Main {
  public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);
    String dateStr = sc.next();

    DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
    LocalDate date = LocalDate.parse(dateStr, formatter);
    LocalDate reiwa = LocalDate.of(2019, 4, 30);

    System.out.println(date.isAfter(reiwa) ? "TBD" : "Heisei" );

  }
} Main public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);
    String dateStr = sc.next();

    DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
    LocalDate date = LocalDate.parse(dateStr, formatter);
    LocalDate reiwa = LocalDate.of(2019, 4, 30);

    System.out.println(date.isAfter(reiwa) ? "TBD" : "Heisei" );

  } main {

    Scanner sc = new Scanner(System.in);
    String dateStr = sc.next();

    DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
    LocalDate date = LocalDate.parse(dateStr, formatter);
    LocalDate reiwa = LocalDate.of(2019, 4, 30);

    System.out.println(date.isAfter(reiwa) ? "TBD" : "Heisei" );

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String dateStr = sc.next(); dateStr sc.next() sc.next sc DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd"); formatter DateTimeFormatter.ofPattern("yyyy/MM/dd") DateTimeFormatter.ofPattern DateTimeFormatter "yyyy/MM/dd" LocalDate date = LocalDate.parse(dateStr, formatter); date LocalDate.parse(dateStr, formatter) LocalDate.parse LocalDate dateStr formatter LocalDate reiwa = LocalDate.of(2019, 4, 30); reiwa LocalDate.of(2019, 4, 30) LocalDate.of LocalDate 2019 4 30 System.out.println(date.isAfter(reiwa) ? "TBD" : "Heisei" ) System.out.println System.out System System.out date.isAfter(reiwa) ? "TBD" : "Heisei" date.isAfter(reiwa) date.isAfter date reiwa "TBD" "Heisei" String[] args args public class Main {
  public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);
    String dateStr = sc.next();

    DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
    LocalDate date = LocalDate.parse(dateStr, formatter);
    LocalDate reiwa = LocalDate.of(2019, 4, 30);

    System.out.println(date.isAfter(reiwa) ? "TBD" : "Heisei" );

  }
} public class Main {
  public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);
    String dateStr = sc.next();

    DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
    LocalDate date = LocalDate.parse(dateStr, formatter);
    LocalDate reiwa = LocalDate.of(2019, 4, 30);

    System.out.println(date.isAfter(reiwa) ? "TBD" : "Heisei" );

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

public class Main {
  public static void main(String[] args ){

    Scanner sc = new Scanner(System.in);
    String dateStr = sc.next();

    DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
    LocalDate date = LocalDate.parse(dateStr, formatter);
    LocalDate reiwa = LocalDate.of(2019, 4, 30);

    System.out.println(date.isAfter(reiwa) ? "TBD" : "Heisei" );

  }
}
