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 "name_1price_1name_2price_2...name_{n}price_{n}", where name_{i} (name of the i-th purchase) is a non-empty string of length not more than 10, consisting of lowercase English letters, and price_{i} (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 10^6 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

Difficulty: interview

Starter code:

Solutions:
3

s = input()
alph = ''.join([chr(ord('a') + x) for x in range(26)])
l = [[]]
for x in s:
    if x not in alph:
        l[-1].append(x)
    else:
        if len(l[-1]):
            l.append([])
l = list([''.join(x) for x in l])
ansa = 0
ansb = 0
for t in l:
    if len(t) > 2 and t[-3] == '.':
        ansb += int(t[-2:])
        t = t[:-3]
    ansa += int(''.join(t.split('.')))
ansa += ansb // 100
ansb %= 100
ansa = str(ansa)
ans = []
last = len(ansa)
for x in range(len(ansa) - 3, -1, -3):
    ans.append(ansa[x:last])
    last = x
if last != 0:
    ans.append(ansa[:last])
ans.reverse()
if ansb != 0:
    ans.append("%02d" % ansb)
print(".".join(ans))


s = input()
l = ''.join(list((map(lambda x : x if ord('0') <= ord(x) <= ord('9') or x == '.' else ' ', list(s)))))

def readnum(s):
    if len(s) >= 3 and s[-3] == '.':
        a = s[:-3]
        b = s[-2:]
    else:
        a = s
        b = '00'
    a = ''.join(list(filter(lambda x : x != '.', a)))
    return (a,b)
l = list(map(readnum,l.split()))
a,b = (0,0)
for (x,y) in l:
    a += int(x)
    b += int(y)
a += b//100
b = b%100

a = str(a)

na = ''
nd = 0
for c in a[::-1]:
    if nd % 3 == 0 and len(na) != 0:
        na = '.' + na
    na = c + na
    nd += 1

print(na, end='')
if b:
    print('.%02d' % b)


# You lost the game.
s = str(input())
n = len(s)
i = 0
r = 0
A = "0123456789."
while i < n:
    while A.count(s[i]) == 0:
        i += 1
    p = ""
    while i < n and A.count(s[i]):
        p += s[i]
        i += 1
    E = list(p.split("."))
    #print(p,E)
    e = len(E)
    if len(E[e-1]) == 2:
        v = 0
        for j in range(e-1):
            v = v*1000 + int(E[j])
        v = v*100 + int(E[e-1]) 
    else:
        v = 0
        for j in range(e):
            v = v*1000 + int(E[j])
        v *= 100
    r += v
#print(r)
R = str(r)
m = len(R)-2
res = ""
if m > 0:
    res = R[:m%3]
    for i in range(m%3,m,3):
        if i>0:
            res += "."+R[i:i+3]
        else:
            res += R[i:i+3]
if m <= 0:
    res += "0"
if m == -1:
    res += ".0"+R[m+1]
elif R[m:m+2] != "00":
    res += "." + R[m:m+2]

print(res)

    



s = input()
curnum = 0
ans = 0
dr = 0
n = len(s)
s += 'aaa'
i = 0
while i < n:
    #print(i, curnum)
    if '0' <= s[i] <= '9':
        curnum = 10 * curnum + int(s[i])
    elif s[i] == '.':
        if ('0' <= s[i + 1] <= '9') and ('0' <= s[i + 2] <= '9') and not('0' <= s[i + 3] <= '9'):
            dr += (10 * int(s[i + 1]) + int(s[i + 2]))
            i = i + 2
    else:
        ans += curnum
        curnum = 0
    i += 1
ans += curnum
ans += dr // 100
ans2 = dr % 100
if ans2 == 0:
    ans2 = ''
elif ans2 < 10:
    ans2 = '.0' + str(ans2)
else:
    ans2 = '.' + str(ans2)
ans = int(ans)
ans = str(ans)
nans = ''
for i in range(len(ans)):
    if i % 3 == 0 and i != 0:
        nans += '.'
    nans += ans[len(ans) - 1 - i]
print(nans[::-1] + ans2)



s = input()
name = False
s2 = '0'
cnt = 0
pointsPresent = False
sum = 0
for i in range(len(s)):
    if s[i] in "1234567890.":
        name = False
    else:
        name = True
    if name:
        if cnt == 3 or not pointsPresent:
            sum += int(s2) * 100
        else:
            sum += int(s2)
        s2 = "0"
        cnt = 0
        pointsPresent = False
    else:
        if s[i] != '.':
            s2 += s[i]
            cnt += 1
        else:
            cnt = 0
            pointsPresent = True
if cnt == 3 or not pointsPresent:
    sum += int(s2) * 100
else:
    sum += int(s2)

if sum < 10:
    print("0.0" + str(sum))
elif sum < 100:
    print("0." + str(sum))
else:
    if sum % 100 == 0:
        sum //= 100
        c = -1
    else:
        c = 0
    s3 = str(sum)
    for i in range(len(s3) - 1, -1, -1):
        c += 1
        if c == 3:
            c = 0
            s3 = s3[:i + 1] + '.' + s3[i + 1:]
    print(s3)

import sys, math
s = input()
gg = 0
i = 0
dbl = 0
while i < len(s):
    if 'a' <= s[i] <= 'z':
        i += 1
        continue
    h = '000'
    while i < len(s) and  not 'a' <= s[i] <= 'z':
        h += s[i]
        i += 1
    ans = ''
    if h[-3] == '.':
        dbl += int(h[-2:])
        h = h[:-3] 
    for z in h:
        if z != '.':
            ans += z
    gg += int(ans)
#print(gg, dbl)
dd = []
gg += dbl // 100
dbl = dbl % 100
gg = gg
if dbl != 0:
    dbl = str(dbl)
    while len(dbl) < 2:
        dbl = '0' + dbl
    dd.append(dbl)
#print(dd)
if gg == 0:
    dd.append(0)
while gg != 0:
    dd.append(str(gg % 1000))
    if (gg >= 1000):
        while len(dd[-1]) < 3:
            dd[-1] = '0' + dd[-1]
    gg //= 1000
dd.reverse()
print(*dd, sep = '.')
    

    
            
        


s = input().strip()
dc = set()

for i in range(ord('0'), ord('9') + 1):
    dc.add(chr(i))

dc.add('.')

s1 = ""
for i in range(1, len(s)):
    if s[i] in dc and s[i - 1] not in dc:
        s1 += " "
    if s[i] in dc:
        s1 += s[i]

a = []
s = s1.split(' ')
rub = 0
cop = 0
for i in s:
    if i != "":
        left = "00"
        right = ""
        if len(i) >= 4 and i[-3] == '.':
            left = i[-2:]
            right = i[:-3]
        else:
            right = i
        rt = ""
        for j in right:
            if j != '.':
                rt += j
        rub += int(rt)
        cop += int(left)

rub += cop // 100
cop -= (cop // 100) * 100
anss = ""
rubs = str(rub)
cnt = 1
for i in range(len(rubs) - 1, -1, -1):
    anss += rubs[i]
    if cnt % 3 == 0:
        anss += '.'
    cnt += 1
anss = list(anss)
anss.reverse()
if anss[0] == '.':
    anss = anss[1:]
anss = ''.join(anss)
print(anss, end='')
if cop != 0:
    print('.', end='')
    if cop < 10:
        print(0, end='')
    print(cop, end='')


#!/usr/bin/env python3

import decimal
import itertools


def is_digit_or_dot(char):
    return char.isdigit() or char == "."


def compute(bill):
    prices = []
    for k, v in itertools.groupby(bill, is_digit_or_dot):
        if not k:
            continue
        segments = "".join(v).split(".")
        if len(segments[-1]) == 2:
            cent = decimal.Decimal("." + segments[-1])
            dollar = decimal.Decimal("".join(segments[:-1]))
            price = cent + dollar
        else:
            price = decimal.Decimal("".join(segments))
        prices.append(price)
    amount = sum(prices)
    dollar, cent = divmod(amount, 1)
    ans = "{:,d}".format(int(dollar)).replace(",", ".")
    if cent > 0:
        ans += str(cent)[1:]
    return ans


def main():
    print(compute(input()))


def __starting_point():
    main()

__starting_point()

def f(t):
    if t == '':
        return 0
    m = len(t)
    if '.' not in t:
        return int(t) * 100
    if t[-3] != '.':
        t += '00'
    t2 = ''.join([i for i in t if i != '.'])
    return int(t2)

def wr(x):
    if x < 100:
        res = '0.'
        if x < 10: res += '0'
        res += str(x)
        return res
    x = str(x)
    m = len(x)
    res = x[-2:]
    for i in range(m - 2, 2, -3):
        res = x[i - 3:i] + '.' + res
    res = x[0: (m - 2) % 3] + '.' + res
    if res[0] == '.': res = res[1:]
    if res[-2:] == '00': res = res[:-3]
    return res

s = input() + '_'
num = '1234567890.'
ans = 0
n = len(s)
cur = ''
for i in range(n):
    if s[i] not in num:
        ans += f(cur)
        cur = ''
    else:
        cur += s[i]
print(wr(ans))


s = input()
ans = 0
d = ""
for i in range(len(s)):
    if s[i] in "0123456789.":
        d += s[i]
    else:
        si = ""
        if len(d):
            for j in range(len(d)):
                if d[j] != ".":
                    si += d[j]
            si1 = int(si)
            if (len(d) >= 3 and d[-3] != ".") or len(d) < 3:
                si1 *= 100
            #print(si1)
            ans += si1
        d = ""
si = ""
for j in range(len(d)):
    if d[j] != ".":
        si += d[j]
    si1 = int(si)
if (len(d) >= 3 and d[-3] != ".") or len(d) < 3:
    si1 *= 100
ans += si1
if ans < 10:
    print("0.0{}".format(ans))
elif ans < 100:
    print("0.{}".format(ans))
else:
    ansl = str(ans)[::-1]
    ansi = ansl[0] + ansl[1] + "."
    for i in range(2, len(ansl)):
        if i % 3 == 2 and i != 2:
            ansi += "."
        ansi += ansl[i]
    if ans % 100 == 0:
        a = ansi[::-1]
        print(a[:-3])
    else:
        print(ansi[::-1])


lat='qwertyuiopasdfghjklzxcvbnm'
lats=[]
lats+=lat
c=str(input())
for i in lats:
    c=c.replace(i,' ')
c=c.split()
#print(c)

k=0
for i in c:
    j=int(i.replace('.',''))
    i=i.replace('.',' ')
    
    i=i.split()
    if len(i[len(i)-1])!=2 or len(i)==1:
        j*=100
    #print(j)
    k+=j
#print(k)
print(format(k//100,',d').replace(',','.'),end='')
if k%100!=0:
    print(".%02d" % (k%100))


s = input().strip()
i = 0
alph = 'abcdefjhigklmnopqrstuwvxyz'
ans = 0
while i < len(s):
    if s[i] in alph:
        i += 1
    else:
        j = i
        while j < len(s) and (s[j] in '1234567890' or s[j] == '.'):
            j += 1
        c = s[i:j]
        fl = False
        for k in range(len(c) - 1, -1, -1):
            if c[k] == '.':
                fl = True
                if len(c) - k - 1 == 3:
                    c += '00'
                break
        if not fl:
            c += '00'
        a = ''
        for k in c:
            if k != '.':
                a = a + k
        #print(a)
        ans += int(a)
        i = j
an = str(ans)
a = ''
if len(an) < 3:
    an = '0' * (3 - len(an)) + an
a += an[-1]
a += an[-2]
a += '.'
i = 0
#print(an)
for k in range(len(an) - 3, -1, -1):
    a += an[k]
    i += 1
    if i == 3 and k > 0:
        a += '.'
        i = 0
fl = False
if ans % 100 == 0:
    fl = True

for i in range(len(a) - 1, -1, -1):
    if not fl or i > 2:
        print(a[i], end='')




s = input().rstrip()
for i in range(ord('a'), ord('z') + 1):
    s = 'z'.join(s.split(chr(i)))
s = list(s.split('z'))
ans = 0
ans2 = 0
for i in s:
    if len(i) == 0:
        continue
    q = i.split('.')
    if len(q) == 1 or len(q[-1]) == 3:
        ans += int(''.join(q))
    else:
        ans += int(''.join(q[:len(q)-1]))
        ans2 += int(q[-1])
ans += ans2 // 100
ans2 %= 100
d = ''
if ans2 != 0:
    d = str(ans2)
    d = '.' + '0' * (2 - len(d)) + d
a = []
ans = int(ans)
while ans >= 1000:
    a.append('.' + '0' * (3 - len(str(ans % 1000))) + str(ans % 1000))
    ans //= 1000
a.append(str(ans))
a.reverse()
print(''.join(a) + d)


from decimal import *

# newstr = oldstr.replace("M", "")

def add(l):
	num = list()
	for v in l:
		if v != '.':
			num.append(v)
	num = int(''.join(num))
	if len(l) >= 3 and l[-3] == '.':
		return num
	return num * 100

def solve():
	s = input()
	res = 0
	l = list()
	for c in s:
		if c.islower():
			if len(l) > 0: res += add(l)
			l = list()
		else:
			l.append(c)
	if len(l) > 0: res += add(l)
	return res

def prt(n):
	n = str(n)
	n = n[::-1]
	first = True
	res = ""
	while len(n) > 0:
		if first:
			s = n[:2][::1] if len(n) >= 2 else n[:1] + '0'
			res += s
			res += '.'
			n = n[len(s) :]
		else:
			tmp = ""
			for i in range(3):
				if len(n) == 0:
					break
				tmp += n[0]
				n = n[1:]
			tmp += '.'
			res += tmp

		first = False

	res = res[::-1]

	if len(res) == 3:
		res = '0' + res
	else:
		if res[0] == '.':
			res = res[1:]
	if len(res) >= 3 and res[-1] == '0' and res[-2] == '0' and res[-3] == '.':
		res = res[:-3]
	return res

print(prt(solve()))

q=input()
a=[]
w=len(q)
i=w-1
while i>0:
	if '0'<=q[i]<='9':
		j=i-1
		while not('a'<=q[j]<='z'):
			j-=1
		a.append(q[j+1:i+1])
		i=j
	i-=1
s=0
for i in a:
	l=len(i)
	if l>2:
		if i[l-3]=='.':
			s+=int(i[l-2:])
			i=i[:l-3]
		i=i.replace('.','')
	s+=int(i)*100
d=''
r=s
if s%100!=0:
	d='.'+str(s%100)
if len(d)==2:
	d=d[0]+'0'+d[1]
s//=100
rt=s
tr=d
while s//1000!=0:
	t=str(s%1000)
	if len(t)==1:
		t='.00'+t
	elif len(t)==2:
		t='.0'+t
	else:
		t='.'+t
	d=t+d
	s//=1000
if s!=0:
	t=str(s%1000)
	d=t+d
else:
	d=d[1:]
if len(d)==2:
	d='0.'+d
elif d=='':
	d='0'
print(d)

s = input()
rub = 0
kop = 0
cur = 0
len_cur = 0
for i in range(len(s)):
    if 122 >= ord(s[i]) >= 97:
        if len_cur == 2:
            kop += cur - cur // 100 * 100
            rub += cur // 100
        else:
            rub += cur
        cur = 0
        len_cur = 0
    elif 57 >= ord(s[i]) >= 48:
        cur = 10 * cur + int(s[i])
        len_cur += 1
    elif s[i] == '.':
        len_cur = 0
        
if len_cur == 2:
    kop += cur - cur // 100 * 100
    rub += cur // 100
else:
    rub += cur
    
rub += kop // 100
kop = kop - kop // 100 * 100

if kop < 10: kop = '0' + str(kop)
kop = str(kop)
srub = ''
if len(str(rub)) % 3 != 0:
    srub += str(str(rub)[:len(str(rub)) % 3]) + '.'
   
c = 0
for i in range(len(str(rub)) % 3, len(str(rub))):
    c += 1
    srub += str(rub)[i]
    if c == 3:
        srub += '.'
        c = 0

if kop == '00':
    print(srub[:-1])
else:
    print(srub + kop)

from math import *

def remd(x):
    y = []
    for i in x:
        if i != '.':
            y.append(i)
    return ''.join(y)

def parse(x):
    if '.' not in x:
        return int(x)
    i = len(x) - 1
    cnt = 0
    while x[i] != '.':
        i -= 1
        cnt += 1
    if cnt == 2:
        x1 = int(remd(x[:i]))
        x2 = int(x[i + 1:])
        return x1 + x2 / 100
    else:
        return int(remd(x))

def format(y):
    y1 = int(y)
    y2 = round((y - y1) * 100)

    y1 = str(y1)
    yy = []
    for i in range(len(y1)):
        yy.append(y1[len(y1) - 1 - i])
        if i % 3 == 2 and i != len(y1) - 1:
            yy.append('.')
    yy.reverse()
    yy = ''.join(yy)

    if y2 != 0:
        yy += '.'
        yy += ('%02d' % y2)
    return yy

s = input()
pr = []
cur = []
for i in s:
    if '0' <= i <= '9' or i == '.':
        cur.append(i)
    else:
        if len(cur) > 0:
            pr.append(''.join(cur))
            cur = []
if len(cur) > 0:
    pr.append(''.join(cur))

sm = 0
for i in pr:
    sm += parse(i)
print(format(sm))

def fr(s):
    ans = 0
    was = False
    s = s.split('.')
    if len(s[-1]) == 2 and len(s) != 1:
        ans += int(s[-1]) / 100
        was = True
    
    s = s[::-1]
    for i in range(was, len(s)):
        ans += int(s[i]) * (10 ** (3 * (i - was)))
       
    return ans


def to(n):
    ans =  []
    was = False
    if int(n) != n:
        tmp = str(n - int(n))
        tmp = tmp[2:]
        try:
            if tmp[2]:
                if tmp[2] >= "5":
                    tmp = tmp[0] + str(int(tmp[1]) + 1)
                else:
                    tmp = tmp[:2]
        except:
            pass
        if len(tmp) == 1:
            tmp += '0'
        ans.append(tmp)
        was = True
    n = int(n)
    
    while n > 0:
        tmp = str(n % 1000)
        if len(tmp) < 3 and n >= 1000:
            tmp = '0' * (3 - len(tmp)) + tmp
        ans.append(tmp)
        
        n //= 1000
    ans = ans[::-1]
    if was and len(ans) == 1:
        ans = ["0"] + ans
    
    return ".".join(ans)



s = input() + "a"

data = []
last = 0
number = False
for i in range(len(s)):
    if "a" <= s[i] and s[i] <= "z":
        if number:
            number = False
            data.append(s[last:i])
        continue
    if not number:
        last = i
        number = True
        
nums = [fr(i) for i in data]

print(to(sum(nums)))

def get_down(i):
    if len(i) > 3 and i[-3] == '.':
        return int(i[-2:])
    return 0


def get_up(ans):
    if len(ans) > 3 and i[-3] == '.':
        ans = ans[:-3]
    ans = ans.replace('.', '')
    return int(ans)


def modify(up, down=0):
    ans = ''
    f = (up == 0)
    while up != 0:
        ans = str(up % 1000).rjust(3, '0') + '.' + ans
        up //= 1000
    ans = ans.lstrip('0')
    if down == 0:
        ans = ans[:-1]
    else:
        down = str(down).rjust(2, '0')
        ans += down
    if (f):
        ans = '0.' + ans
    return ans

s = input().strip()
numb = []
cur = ''
f = 0
for i in s:
    if '0' <= i <= '9':
        f = 1
        cur += i
    elif i == '.':
        cur += i
    elif 'a' <= i <= 'z' or 'A' <= i <= 'Z':
        f = 0
        if (cur):
            numb.append(cur)
            cur = ''
if cur:
    numb.append(cur)
    cur = ''
ans_up = 0
ans_down = 0
for i in numb:
    #print(i, get_up(i), get_down(i))
    ans_up += get_up(i)
    ans_down += get_down(i)
ans_up += ans_down // 100
ans_down %= 100
print(modify(ans_up, ans_down))


s = input()
c = set()
c.add('1')
c.add('2')
c.add('3')
c.add('4')
c.add('5')
c.add('6')
c.add('7')
c.add('8')
c.add('9')
c.add('0')
c.add('.')

ans = []
j = 0
st = ''
for i in range(len(s)):
    if s[i] in c:
        st += s[i]
    elif len(st) > 0:
        ans.append(st)
        st = ''
x = 0
ans.append(st)
for i in range(len(ans)):
    if len(ans[i]) < 3:
        ans[i] += '.00'
    if ans[i][-3] != '.':
        ans[i] += '.00'
cc = set()
cc.add('1')
cc.add('2')
cc.add('3')
cc.add('4')
cc.add('5')
cc.add('6')
cc.add('7')
cc.add('8')
cc.add('9')
cc.add('0')
pp =''
pk = 0
pr = 0
for i in range(len(ans)):
    for j in range(len(ans[i]) - 1, - 1, -1):
        if ans[i][j] == '.':
            x = j
            break
    p1 = ans[i][:x]
    p2 = ans[i][x + 1:]
    for ii in range(len(p1)):
        if p1[ii] in cc:
            pp += p1[ii]
    pr += int(pp)
    pp = ''
    pk += int(p2)
while pk > 99:
    pk -= 100
    pr += 1
pk = str(pk)
if len(pk) < 2:
    pk = '0' + pk
answer = str(pr) + '.' + pk
j = answer.index('.')
q = 0
for i in range(j, -1, -1):
    if q == 2:
        answer = answer[:i] + '.' + answer[i:]
        q = 0
    elif answer[i] != '.':
        q += 1
if answer[-1] == '0' and answer[-2] == '0' and answer[-3] == '.':
    answer = answer[:-3]
if answer[0] == '.':
    answer = answer[1:]
print(answer)
    
"""
        ans[j] = ans[j] * 10 + int(s[i])
    elif s[i] == '.':
        ans[j] *= 100"""

s = input()
ms = ['']
dct = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '.'}
p = 0
for i in s:
    if i in dct:
        ms[-1] += i
        p = 1
    else:
        if p:
            ms.append('')
            p = 0
rub = 0
kop = 0
if ms[0] == '':
    ms = []
for i in ms:
    box = i.split('.')
    l = len(box)
    a = 0
    b = 0
    p = 0
    for j in range(l - 1, -1, -1):
        if len(box[j]) == 2 and j == l - 1:
            b = int(box[j])
            p = 1
        else:
            a += int(box[j]) * (1000 ** (l - 1 - j - p))
    rub += a
    kop += b
rub += kop // 100
kop %= 100

s = str(rub)
l = len(s)
d = l % 3
ret = ''
ind = 0
if d:
    ind = d
    for i in range(d):
        ret += s[i]
    ret += '.'
cnt = 0
for i in range(ind, l):
    ret += s[i]
    cnt += 1
    cnt %= 3
    if not cnt:
        ret += '.'
if kop:
    if kop < 10:
        ret += '0'
    ret += str(kop)
    print(ret)
else:
    l = len(ret)
    for i in range(0, l - 1, 1):
        print(ret[i], end = '')

    
    
            
        

from decimal import Decimal
check = input()
check = check + 'a'
bukvi = ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', 'a', 's', 'd', 'f' ,'g', 'h', 'j', 'k', 'l', 'z', 'x', 'c', 'v', 'b', 'n', 'm']
flag = 0
number = []
numbers = []
for symvol in check:
    if flag == 0:
        if symvol not in bukvi:
            flag = 1
    if flag == 1:
        if symvol not in bukvi:
            number += symvol
        else:
            numbers += [number]
            number = []
            flag = 0
ans = 0
for num in numbers:
    integ = []
    for i in range(len(num)):
        if num[i] != '.':
            integ += num[i]
        else:
            if i == len(num) - 3:
                integ += [num[i]]
    ans += Decimal(''.join(integ))
ans = str(ans)
if len(ans) >3 and ans[-1] == ans[-2] == '0' and ans[-3] == '.':
    ans = ans[:-3]
res = []
cnt = 0
if len(ans) > 3 and ans[-3] == '.':
    for i in range(len(ans) - 4, -1, -1):
        if cnt == 3:
            res += ['.']
            cnt = 0
        res += ans[i]
        cnt += 1
    res.reverse()
    res += ans[-3:]
else:
    for i in range(len(ans) - 1, -1, -1):
        if cnt == 3:
            res += ['.']
            cnt = 0
        res += ans[i]
        cnt += 1
    res.reverse()
print(''.join(res))
           


def num(a):
    if len(a) < 4:
        return int(a) * 100
    q = 1
    if a[-3] != '.':
        q = 100
    b = ''
    for i in a:
        if i != '.':
            b += i
    print
    return int(b) * q

a = input()
b = 0
nn = ''
q = 2
for i in a:
    if i not in '1234567890.':
        if len(nn) > 0:
            b += num(nn)
        nn = ''
    else:
        nn += i
if len(nn) > 0:
    b += num(nn)
a = [b % 100]
b //= 100
while b != 0:
    a = [b % 1000] + a
    b //= 1000
if len(a) == 1:
    print(0, end='')
    if a[0] != 0:
        print('.', a[0] // 10, a[0] % 10, sep='')
else:
    if a[-1] == 0:
        for i in range(1, len(a)):
            a[i] = str(a[i]).zfill(3)
        a[0] = str(a[0])
        print('.'.join(a[:-1]))
    else:
        for i in range(1, len(a) - 1):
            a[i] = str(a[i]).zfill(3)
        a[-1] = str(a[-1]).zfill(2)
        a[0] = str(a[0])
        print('.'.join(a))

import re
o=input
C=len
E=float
F=int
d=print
U=sum
S=re.findall
l=o()
e=S("[\d\.]+",l)
def p(u):
 u=u.split('.')
 if C(u[-1])==2 and C(u)>1:
  G=u[-1]
  return E("".join(u[:-1])+"."+G)
 else:
  return F("".join(u))
def V(flo):
 if F(flo)==flo:
  return '{:,}'.format(F(flo)).replace(',','.')
 else:
  return '{:,.2f}'.format(flo).replace(',','.')
e=[p(num)for num in e]
d(V(U(e)))


s = str(input())
s = s[::-1]

current = ""
answer = 0

for el in s:
    if '9' >= el >= '0':
        current += el
    elif el == '.':
        if len(current) == 2:
            current += '.'
    else:
        if current != '':
            answer += float(current[::-1])
            current = ''

temp = "%.2f" % answer
if temp[len(temp) - 2:] != '00':
    temp_2 = temp[:len(temp) - 3][::-1]
    temp = temp[len(temp) - 2:]
    parts = []
    current = ""
    for i in range(len(temp_2)):
        current += temp_2[i]
        if len(current) == 3:
            parts.append(current[::-1])
            current = ''
    if current != '':
        parts.append(current[::-1])
    print(*parts[::-1], sep='.', end='.')
    print(temp)

else:
    temp_2 = str(int(answer))[::-1]
    parts = []
    current = ""
    for i in range(len(temp_2)):
        current += temp_2[i]
        if len(current) == 3:
            parts.append(current[::-1])
            current = ''
    if current != '':
        parts.append(current[::-1])
    print(*parts[::-1], sep='.')