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
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
import java.io.*;
import java.util.*;
/**
 *
 * @author PRAVEEN KUMAR SINGH
 */


    /**
     * @param args the command line arguments
     */
    public class JavaApplication2 { 
        // public static void main(String args[])throws IOException
//{BufferedReader br=new BufferedReader(new InputStreamReader(System.in));

//Friend friends[] = new Friend[n];  
//friends[i] = new Friend(br.nextInt(), br.nextInt());
//List a1 = new ArrayList();
           /* Arrays.sort(friends,new Comparator<Friend>() {
			@Override
			public int compare(Friend x, Friend y) {
				if(x.s > y.s)return 1;
				else if(x.s < y.s) return -1;
				return 0;
			}
		});*/
        public static void main(String[] args) throws Exception{
Reader br=new Reader();
PrintWriter pw=new PrintWriter(System.out);
String str=br.readLine();str=str+"a";
int l=str.length();double d=0.00;long n1=0;
for(int i=0;i<l;i++)
{int n=0;
if((int)str.charAt(i)>=48&&(int)str.charAt(i)<=57)
{for(int j=i;j<l;j++)
{if((int)str.charAt(j)>=97&&(int)str.charAt(j)<=122){i=j;break;}
    if((int)str.charAt(j)>=48&&(int)str.charAt(j)<=57)
    n=(10*n)+(int)str.charAt(j)-48;
if(str.charAt(j)=='.'&&(int)str.charAt(j+3)>=97)
{
    d+=Double.parseDouble(str.substring(j,j+3));
i=j+2;
j=i;}}}n1+=n;}
double d1=(double)(n1)+d;
n1=(long)d1;
str=String.valueOf(n1);
d1=d1-n1;
d1 = Math.round(d1*100)/100.0;
if(d1==0.1||d1==0.2||d1==0.3||d1==0.4||d1==0.5||d1==0.6||d1==0.7||d1==0.8||d1==0.9)
    str=String.valueOf(d1).substring(1 )+"0";
else if(d1!=0.0)
str = String.valueOf(d1).substring(1 );
else
                        str="";
String s1=String.valueOf(n1);
int m1=s1.length()-3;
for(int i=m1;i>=1;i=i-3)
    s1=s1.substring(0,i)+"."+s1.substring(i,s1.length());
    s1=s1+str;
                        pw.println(s1);
br.close();
pw.flush();
        }        
        static class Reader
    {
        final private int BUFFER_SIZE = 1 << 16;
        private DataInputStream din;
        private byte[] buffer;
        private int bufferPointer, bytesRead;
 
        public Reader()
        {
            din = new DataInputStream(System.in);
            buffer = new byte[BUFFER_SIZE];
            bufferPointer = bytesRead = 0;
        }
 
        public Reader(String file_name) throws IOException
        {
            din = new DataInputStream(new FileInputStream(file_name));
            buffer = new byte[BUFFER_SIZE];
            bufferPointer = bytesRead = 0;
        }
 public String next() throws IOException{
			StringBuilder sb = new StringBuilder();
			int n = read();
			while (isWhiteSpace(n))
				n = read();
			while (!isWhiteSpace(n)) {
				sb.append((char) n);
				n = read();
			}
			return sb.toString();
		}
        public String readLine() throws IOException
        {
            int n = read();
			while (isWhiteSpace(n))
				n = read();
			StringBuilder res = new StringBuilder();
			do {
				res.appendCodePoint(n);
				n = read();
			} while (!isEndOfLine(n));
			return res.toString();
		}
           public boolean isWhiteSpace(int n) {
			if (n == ' ' || n == '\n' || n == '\r' || n == '\t' || n == -1)
				return true;
			return false;
		}

		private boolean isEndOfLine(int c) {
			return c == '\n' || c == '\r' || c == -1;
		}
        public int nextInt() throws IOException
        {
            int ret = 0;
            byte c = read();
            while (c <= ' ')
                c = read();
            boolean neg = (c == '-');
            if (neg)
                c = read();
            do
            {
                ret = ret * 10 + c - '0';
            }  while ((c = read()) >= '0' && c <= '9');
 
            if (neg)
                return -ret;
            return ret;
        }
 
        public long nextLong() throws IOException
        {
            long ret = 0;
            byte c = read();
            while (c <= ' ')
                c = read();
            boolean neg = (c == '-');
            if (neg)
                c = read();
            do {
                ret = ret * 10 + c - '0';
            }
            while ((c = read()) >= '0' && c <= '9');
            if (neg)
                return -ret;
            return ret;
        }
 
        public double nextDouble() throws IOException
        {
            double ret = 0, div = 1;
            byte c = read();
            while (c <= ' ')
                c = read();
            boolean neg = (c == '-');
            if (neg)
                c = read();
 
            do {
                ret = ret * 10 + c - '0';
            }
            while ((c = read()) >= '0' && c <= '9');
 
            if (c == '.')
            {
                while ((c = read()) >= '0' && c <= '9')
                {
                    ret += (c - '0') / (div *= 10);
                }
            }
 
            if (neg)
                return -ret;
            return ret;
        }
 
        private void fillBuffer() throws IOException
        {
            bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
            if (bytesRead == -1)
                buffer[0] = -1;
        }
 
        private byte read() throws IOException
        {
            if (bufferPointer == bytesRead)
                fillBuffer();
            return buffer[bufferPointer++];
        }
 
        public void close() throws IOException
        {
            if (din == null)
                return;
            din.close();
        }
    }
 
 
	
    
static class Friend implements Comparable<Friend>{
        int m;
        int s;

        public Friend(int x, int y) {
            this.m = x;
            this.s = y;
        }

        @Override
        public int compareTo(Friend o) {
            return Integer.compare(m, o.m);
        }
}}