public static void main ( String [ ] args ) throws IOException {
  BufferedReader reader = new BufferedReader ( new InputStreamReader ( System . in ) ) ;
  String s = reader . readLine ( ) ;
  double checksum = 0 ;
  for ( int i = 0 ;
  i < s . length ( ) ;
  i ++ ) {
    int z = i ;
    if ( Character . isDigit ( s . charAt ( i ) ) ) {
      StringBuilder currentPrice = new StringBuilder ( ) ;
      for ( int j = z ;
      j < s . length ( ) ;
      j ++ ) {
        char currentSymbol = s . charAt ( j ) ;
        i = j ;
        if ( Character . isDigit ( currentSymbol ) || Character . toString ( currentSymbol ) . equals ( "." ) ) {
          currentPrice . append ( Character . toString ( currentSymbol ) ) ;
        }
        else break ;
      }
      String [ ] k = currentPrice . toString ( ) . split ( "\\." ) ;
      currentPrice = new StringBuilder ( ) ;
      for ( int j = 0 ;
      j < k . length ;
      j ++ ) {
        if ( k . length > 1 && j + 1 == k . length && k [ j ] . length ( ) == 2 ) {
          currentPrice . append ( "." ) . append ( k [ j ] ) ;
        }
        else currentPrice . append ( k [ j ] ) ;
      }
      checksum += Double . parseDouble ( currentPrice . toString ( ) ) ;
    }
  }
  s = String . format ( "%,.2f" , checksum ) ;
  s = s . replaceAll ( "," , "." ) ;
  if ( s . substring ( s . length ( ) - 2 ) . equals ( "00" ) ) s = s . substring ( 0 , s . length ( ) - 3 ) ;
  System . out . println ( s ) ;
}

public static void main ( String [ ] args ) throws IOException { BufferedReader reader = new BufferedReader ( new InputStreamReader ( System . in ) ) ; String s = reader . readLine ( ) ; double checksum = 0 ; for ( int i = 0 ; i < s . length ( ) ; i ++ ) { int z = i ; if ( Character . isDigit ( s . charAt ( i ) ) ) { StringBuilder currentPrice = new StringBuilder ( ) ; for ( int j = z ; j < s . length ( ) ; j ++ ) { char currentSymbol = s . charAt ( j ) ; i = j ; if ( Character . isDigit ( currentSymbol ) || Character . toString ( currentSymbol ) . equals ( " . " ) ) { currentPrice . append ( Character . toString ( currentSymbol ) ) ; } else break ; } String [ ] k = currentPrice . toString ( ) . split ( " \\ . " ) ; currentPrice = new StringBuilder ( ) ; for ( int j = 0 ; j < k . length ; j ++ ) { if ( k . length > 1 && j + 1 == k . length && k [ j ] . length ( ) == 2 ) { currentPrice . append ( " . " ) . append ( k [ j ] ) ; } else currentPrice . append ( k [ j ] ) ; } checksum += Double . parseDouble ( currentPrice . toString ( ) ) ; } } s = String . format ( " % , . 2f " , checksum ) ; s = s . replaceAll ( " , " , " . " ) ; if ( s . substring ( s . length ( ) - 2 ) . equals ( "00" ) ) s = s . substring ( 0 , s . length ( ) - 3 ) ; System . out . println ( s ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) (throws (type_identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (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: (floating_point_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: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (identifier))) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))) consequence: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (identifier))) condition: (binary_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) name: (identifier) arguments: (argument_list (string_literal))))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))) alternative: (break_statement)))) (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (string_literal))))) (expression_statement (assignment_expression left: (identifier) right: (object_creation_expression type: (type_identifier) arguments: (argument_list)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (field_access object: (identifier) field: (identifier))) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (decimal_integer_literal)) right: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (field_access object: (identifier) field: (identifier)))) right: (binary_expression left: (method_invocation object: (array_access array: (identifier) index: (identifier)) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)))) consequence: (block (expression_statement (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier)))))) alternative: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (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 (string_literal) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (string_literal))))) (if_statement condition: (parenthesized_expression (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)))) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal) (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))