public static void main ( String args [ ] ) {
  Scanner scan = new Scanner ( System . in ) ;
  String date [ ] = scan . next ( ) . split ( "/" , 0 ) ;
  int year = Integer . parseInt ( date [ 0 ] ) ;
  int month = Integer . parseInt ( date [ 1 ] ) ;
  int day = Integer . parseInt ( date [ 2 ] ) ;
  Calendar cal = Calendar . getInstance ( ) ;
  cal . set ( year , month - 1 , day ) ;
  while ( ! ( find_date ( cal ) ) ) cal . add ( Calendar . DAY_OF_MONTH , 1 ) ;
  year = cal . get ( Calendar . YEAR ) ;
  month = cal . get ( Calendar . MONTH ) + 1 ;
  day = cal . get ( Calendar . DATE ) ;
  System . out . printf ( "%4d/%02d/%02d\n" , year , month , day ) ;
}

public static void main ( String args [ ] ) { Scanner scan = new Scanner ( System . in ) ; String date [ ] = scan . next ( ) . split ( " / " , 0 ) ; int year = Integer . parseInt ( date [ 0 ] ) ; int month = Integer . parseInt ( date [ 1 ] ) ; int day = Integer . parseInt ( date [ 2 ] ) ; Calendar cal = Calendar . getInstance ( ) ; cal . set ( year , month - 1 , day ) ; while ( ! ( find_date ( cal ) ) ) cal . add ( Calendar . DAY_OF_MONTH , 1 ) ; year = cal . get ( Calendar . YEAR ) ; month = cal . get ( Calendar . MONTH ) + 1 ; day = cal . get ( Calendar . DATE ) ; System . out . printf ( " % 4d / %02d / %02d \n " , year , month , day ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) 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) dimensions: (dimensions) value: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (string_literal) (decimal_integer_literal))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (decimal_integer_literal)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (decimal_integer_literal)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (decimal_integer_literal)))))) (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) (binary_expression left: (identifier) right: (decimal_integer_literal)) (identifier)))) (while_statement condition: (parenthesized_expression (unary_expression operand: (parenthesized_expression (method_invocation name: (identifier) arguments: (argument_list (identifier)))))) body: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)) (decimal_integer_literal))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))) right: (decimal_integer_literal)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal) (identifier) (identifier) (identifier))))))