public static void main ( String [ ] args ) {
  Scanner sc = new Scanner ( System . in ) ;
  String [ ] str = sc . next ( ) . replaceFirst ( "[a-z]+" , "" ) . split ( "[a-z]+" , - 1 ) ;
  int len = str . length ;
  long gold = 0 ;
  long coins = 0 ;
  for ( int i = 0 ;
  i < len ;
  i ++ ) {
    int lastPoint = str [ i ] . lastIndexOf ( '.' ) ;
    if ( str [ i ] . substring ( lastPoint + 1 ) . length ( ) == 2 ) {
      gold += Integer . parseInt ( str [ i ] . substring ( 0 , lastPoint ) . replaceAll ( "\\." , "" ) ) ;
      coins += Integer . parseInt ( str [ i ] . substring ( lastPoint + 1 ) ) ;
    }
    else {
      gold += Integer . parseInt ( str [ i ] . replaceAll ( "\\." , "" ) ) ;
    }
  }
  gold += coins / 100 ;
  coins %= 100 ;
  if ( gold == 0 ) {
    System . out . printf ( Locale . GERMAN , "0.%02d" , coins ) ;
  }
  else if ( coins == 0 ) {
    System . out . printf ( Locale . GERMAN , "%,d" , gold ) ;
  }
  else {
    System . out . printf ( Locale . GERMAN , "%,d.%02d" , gold , coins ) ;
  }
}

public static void main ( String [ ] args ) { Scanner sc = new Scanner ( System . in ) ; String [ ] str = sc . next ( ) . replaceFirst ( " [ a - z ] + " , " " ) . split ( " [ a - z ] + " , - 1 ) ; int len = str . length ; long gold = 0 ; long coins = 0 ; for ( int i = 0 ; i < len ; i ++ ) { int lastPoint = str [ i ] . lastIndexOf ( ' . ' ) ; if ( str [ i ] . substring ( lastPoint + 1 ) . length ( ) == 2 ) { gold += Integer . parseInt ( str [ i ] . substring ( 0 , lastPoint ) . replaceAll ( " \\ . " , " " ) ) ; coins += Integer . parseInt ( str [ i ] . substring ( lastPoint + 1 ) ) ; } else { gold += Integer . parseInt ( str [ i ] . replaceAll ( " \\ . " , " " ) ) ; } } gold += coins / 100 ; coins %= 100 ; if ( gold == 0 ) { System . out . printf ( Locale . GERMAN , "0 . % 02d " , coins ) ; } else if ( coins == 0 ) { System . out . printf ( Locale . GERMAN , " % , d " , gold ) ; } else { System . out . printf ( Locale . GERMAN , " % , d . %02d " , gold , coins ) ; } }
(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: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (string_literal) (string_literal))) name: (identifier) arguments: (argument_list (string_literal) (unary_expression operand: (decimal_integer_literal)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (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))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (array_access array: (identifier) index: (identifier)) name: (identifier) arguments: (argument_list (character_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (method_invocation object: (array_access array: (identifier) index: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)))) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (method_invocation object: (array_access array: (identifier) index: (identifier)) name: (identifier) arguments: (argument_list (decimal_integer_literal) (identifier))) name: (identifier) arguments: (argument_list (string_literal) (string_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (array_access array: (identifier) index: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal))))))))) alternative: (block (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (array_access array: (identifier) index: (identifier)) name: (identifier) arguments: (argument_list (string_literal) (string_literal))))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)) (string_literal) (identifier))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)) (string_literal) (identifier))))) alternative: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)) (string_literal) (identifier) (identifier)))))))))