public static void main ( String [ ] args ) {
  String input = new Scanner ( System . in ) . nextLine ( ) ;
  String [ ] costs = input . split ( "[a-z]{1,10}" ) ;
  double sum = 0 ;
  for ( String cost : costs ) {
    if ( cost . isEmpty ( ) ) continue ;
    if ( cost . matches ( "([1-9][0-9]{0,2}|0)(\\.[0-9]{3})*(\\.[0-9]{2})?" ) ) {
      if ( cost . length ( ) > 3 && cost . charAt ( cost . length ( ) - 3 ) == '.' ) cost = cost . substring ( 0 , cost . length ( ) - 3 ) + "#" + cost . substring ( cost . length ( ) - 2 ) ;
      cost = cost . replace ( "." , "" ) ;
      cost = cost . replace ( "#" , "." ) ;
      sum += Double . parseDouble ( cost ) ;
    }
    else {
      System . out . println ( "Invalid Input" ) ;
      return ;
    }
  }
  String output = Long . toString ( Math . round ( sum * 100 ) / 100 ) + "." + String . format ( "%02d" , ( Math . round ( sum * 100 ) % 100 ) ) ;
  while ( output . indexOf ( '.' ) > 3 ) output = output . substring ( 0 , output . indexOf ( '.' ) - 3 ) + "." + output . substring ( output . indexOf ( '.' ) - 3 ) ;
  if ( output . endsWith ( ".00" ) ) output = output . substring ( 0 , output . length ( ) - 3 ) ;
  System . out . println ( output ) ;
}

public static void main ( String [ ] args ) { String input = new Scanner ( System . in ) . nextLine ( ) ; String [ ] costs = input . split ( " [ a - z ] { 1,10 } " ) ; double sum = 0 ; for ( String cost : costs ) { if ( cost . isEmpty ( ) ) continue ; if ( cost . matches ( " ( [1-9 ] [ 0-9 ] { 0,2 } | 0 ) ( \\ . [0-9 ] { 3 } ) * ( \\ . [0-9 ] { 2 } ) ? " ) ) { if ( cost . length ( ) > 3 && cost . charAt ( cost . length ( ) - 3 ) == ' . ' ) cost = cost . substring ( 0 , cost . length ( ) - 3 ) + " # " + cost . substring ( cost . length ( ) - 2 ) ; cost = cost . replace ( " . " , " " ) ; cost = cost . replace ( " # " , " . " ) ; sum += Double . parseDouble ( cost ) ; } else { System . out . println ( " Invalid ▁ Input " ) ; return ; } } String output = Long . toString ( Math . round ( sum * 100 ) / 100 ) + " . " + String . format ( " % 02d " , ( Math . round ( sum * 100 ) % 100 ) ) ; while ( output . indexOf ( ' . ' ) > 3 ) output = output . substring ( 0 , output . indexOf ( ' . ' ) - 3 ) + " . " + output . substring ( output . indexOf ( ' . ' ) - 3 ) ; if ( output . endsWith ( " . 00" ) ) output = output . substring ( 0 , output . length ( ) - 3 ) ; System . out . println ( output ) ; }
(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: (method_invocation object: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (enhanced_for_statement type: (type_identifier) name: (identifier) value: (identifier) body: (block (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) consequence: (continue_statement)) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)) right: (binary_expression left: (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)))) right: (character_literal)))) consequence: (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (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)))) right: (string_literal)) right: (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)))))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (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 (string_literal) (string_literal))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))) alternative: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (return_statement))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (decimal_integer_literal)))) right: (string_literal)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (decimal_integer_literal)))))))) (while_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (character_literal))) right: (decimal_integer_literal))) body: (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal) (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (character_literal))) right: (decimal_integer_literal)))) right: (string_literal)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (character_literal))) right: (decimal_integer_literal)))))))) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) 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))))))