727_B. Bill Total Value
Vasily exited from a store and now he wants to recheck the total price of all purchases in his bill. The bill is a string in which the names of the purchases and their prices are printed in a row without any spaces. Check has the format "name1price1name2price2...namenpricen", where namei (name of the i-th purchase) is a non-empty string of length not more than 10, consisting of lowercase English letters, and pricei (the price of the i-th purchase) is a non-empty string, consisting of digits and dots (decimal points). It is possible that purchases with equal names have different prices.

The price of each purchase is written in the following format. If the price is an integer number of dollars then cents are not written.

Otherwise, after the number of dollars a dot (decimal point) is written followed by cents in a two-digit format (if number of cents is between 1 and 9 inclusively, there is a leading zero).

Also, every three digits (from less significant to the most) in dollars are separated by dot (decimal point). No extra leading zeroes are allowed. The price always starts with a digit and ends with a digit.

For example:

  * "234", "1.544", "149.431.10", "0.99" and "123.05" are valid prices, 
  * ".333", "3.33.11", "12.00", ".33", "0.1234" and "1.2" are not valid. 



Write a program that will find the total price of all purchases in the given bill.

Input

The only line of the input contains a non-empty string s with length not greater than 1000 — the content of the bill.

It is guaranteed that the bill meets the format described above. It is guaranteed that each price in the bill is not less than one cent and not greater than 106 dollars.

Output

Print the total price exactly in the same format as prices given in the input.

Examples

Input

chipsy48.32televizor12.390


Output

12.438.32


Input

a1b2c3.38


Output

6.38


Input

aa0.01t0.03


Output

0.04
```python
import re

def spnum(s):
    a = s.split(".")
    if len(a[-1]) == 2:
        a.append(a[-1])
        a[-2] = '.'
    return eval("".join(a))

s = input()
dollars = re.findall(r"[.0-9]+", s)
for i in range(len(dollars)):
    if "." in dollars[i]:
        dollars[i] = spnum(dollars[i])
    else:
        dollars[i] = eval(dollars[i])
#print(dollars)

ans = eval("%0.2f"%(sum(dollars)))
if ans - int(ans) == 0:
     ans = int(ans)
ans = str(ans)
anss = []
cur = 0
#print(ans)
if "." in ans:
    anss.append(ans[-3:len(ans)])
    #print(anss)
    for i in range(4, len(ans)+1):
        cur += 1
        anss.append(ans[-i])
        if cur % 3 == 0 and i != len(ans):
            cur = 0
            anss.append(".")
    #print(anss)
else:
    for i in range(1, len(ans)+1):
        cur += 1
        anss.append(ans[-i])
        if cur % 3 == 0 and i != len(ans):
            cur = 0
            anss.append(".")
ans = "".join(anss[::-1])
if (len(ans) >= 3 and ans[-2] == "."):
    print(ans+"0")
else:
    print(ans)

```