public static void main ( String [ ] args ) {
  Scanner leer = new Scanner ( System . in ) ;
  String C1 ;
  String C2 ;
  int pos = 0 ;
  int neg = 0 ;
  C1 = leer . nextLine ( ) ;
  C2 = leer . nextLine ( ) ;
  char A [ ] = C1 . toCharArray ( ) ;
  char B [ ] = C2 . toCharArray ( ) ;
  if ( ! C1 . equals ( C2 ) ) for ( int i = 0 ;
  i < ( C1 . length ( ) ) ;
  i ++ ) {
    if ( ( ( ( int ) A [ i ] ) - ( ( int ) B [ i ] ) ) < 0 ) neg ++ ;
    else if ( ( ( ( int ) A [ i ] ) - ( ( int ) B [ i ] ) ) > 0 ) pos ++ ;
  }
  if ( pos == neg ) System . out . print ( pos ) ;
  else if ( pos < neg ) System . out . print ( pos + ( neg - pos ) ) ;
  else System . out . print ( neg + ( pos - neg ) ) ;
}

public static void main ( String [ ] args ) { Scanner leer = new Scanner ( System . in ) ; String C1 ; String C2 ; int pos = 0 ; int neg = 0 ; C1 = leer . nextLine ( ) ; C2 = leer . nextLine ( ) ; char A [ ] = C1 . toCharArray ( ) ; char B [ ] = C2 . toCharArray ( ) ; if ( ! C1 . equals ( C2 ) ) for ( int i = 0 ; i < ( C1 . length ( ) ) ; i ++ ) { if ( ( ( ( int ) A [ i ] ) - ( ( int ) B [ i ] ) ) < 0 ) neg ++ ; else if ( ( ( ( int ) A [ i ] ) - ( ( int ) B [ i ] ) ) > 0 ) pos ++ ; } if ( pos == neg ) System . out . print ( pos ) ; else if ( pos < neg ) System . out . print ( pos + ( neg - pos ) ) ; else System . out . print ( neg + ( pos - neg ) ) ; }
(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))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (unary_expression operand: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) consequence: (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (cast_expression type: (integral_type) value: (array_access array: (identifier) index: (identifier)))) right: (parenthesized_expression (cast_expression type: (integral_type) value: (array_access array: (identifier) index: (identifier)))))) right: (decimal_integer_literal))) consequence: (expression_statement (update_expression (identifier))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (cast_expression type: (integral_type) value: (array_access array: (identifier) index: (identifier)))) right: (parenthesized_expression (cast_expression type: (integral_type) value: (array_access array: (identifier) index: (identifier)))))) right: (decimal_integer_literal))) consequence: (expression_statement (update_expression (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier)))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))) alternative: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))))))