public static void main ( String args [ ] ) {
  input ( ) ;
  Calendar calendar = Calendar . getInstance ( ) ;
  calendar . set ( y , ( m - 1 ) , d ) ;
  String answer = "" ;
  while ( true ) {
    int year = calendar . get ( Calendar . YEAR ) ;
    int month = calendar . get ( Calendar . MONTH ) + 1 ;
    int day = calendar . get ( Calendar . DATE ) ;
    if ( ( year % ( month * day ) ) == 0 ) {
      answer = year + "/" + ( ( month >= 10 ) ? month : "0" + month ) + "/" + ( ( day >= 10 ) ? day : "0" + day ) ;
      break ;
    }
    calendar . add ( Calendar . DAY_OF_MONTH , 1 ) ;
  }
  System . out . println ( answer ) ;
}

public static void main ( String args [ ] ) { input ( ) ; Calendar calendar = Calendar . getInstance ( ) ; calendar . set ( y , ( m - 1 ) , d ) ; String answer = " " ; while ( true ) { int year = calendar . get ( Calendar . YEAR ) ; int month = calendar . get ( Calendar . MONTH ) + 1 ; int day = calendar . get ( Calendar . DATE ) ; if ( ( year % ( month * day ) ) == 0 ) { answer = year + " / " + ( ( month >= 10 ) ? month : "0" + month ) + " / " + ( ( day >= 10 ) ? day : "0" + day ) ; break ; } calendar . add ( Calendar . DAY_OF_MONTH , 1 ) ; } System . out . println ( answer ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) body: (block (expression_statement (method_invocation name: (identifier) arguments: (argument_list))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) (identifier)))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (string_literal))) (while_statement condition: (parenthesized_expression (true)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))) right: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (string_literal)) right: (parenthesized_expression (ternary_expression condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (identifier) alternative: (binary_expression left: (string_literal) right: (identifier))))) right: (string_literal)) right: (parenthesized_expression (ternary_expression condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (identifier) alternative: (binary_expression left: (string_literal) right: (identifier))))))) (break_statement))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)) (decimal_integer_literal)))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))