public static void main ( String [ ] args ) {
  Scanner sc = new Scanner ( System . in ) ;
  String S = sc . nextLine ( ) ;
  SimpleDateFormat sdf = new SimpleDateFormat ( "yyyy/MM/dd" ) ;
  Date date1 = null ;
  Date date2 = null ;
  try {
    date1 = sdf . parse ( S ) ;
    date2 = sdf . parse ( "2019/04/30" ) ;
  }
  catch ( ParseException e ) {
    e . printStackTrace ( ) ;
  }
  if ( date1 . compareTo ( date2 ) == - 1 || date1 . compareTo ( date2 ) == 0 ) {
    System . out . println ( "Heisei" ) ;
  }
  else {
    System . out . println ( "TBD" ) ;
  }
}

public static void main ( String [ ] args ) { Scanner sc = new Scanner ( System . in ) ; String S = sc . nextLine ( ) ; SimpleDateFormat sdf = new SimpleDateFormat ( " yyyy / MM / dd " ) ; Date date1 = null ; Date date2 = null ; try { date1 = sdf . parse ( S ) ; date2 = sdf . parse ( "2019/04/30" ) ; } catch ( ParseException e ) { e . printStackTrace ( ) ; } if ( date1 . compareTo ( date2 ) == - 1 || date1 . compareTo ( date2 ) == 0 ) { System . out . println ( " Heisei " ) ; } else { System . out . println ( " TBD " ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (string_literal))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (null_literal))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (null_literal))) (try_statement body: (block (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))))) (catch_clause (catch_formal_parameter (catch_type (type_identifier)) name: (identifier)) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (unary_expression operand: (decimal_integer_literal))) right: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal)))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))))))