1.
/**
 * Angewandte Mathematik, SS11
 * Problem: 10464 Big Big Real Numbers


 * Link:
http://uva.onlinejudge.org/external/3/374.pdf
 *
 * @author Westerfield, Christopher
 * @author Gent Selmanaj
 * @author Marco Schuster


 * @version 1.0, 04/12/2011
 *
 * Method : Ad-Hoc
 * Status : Accepted
 * Runtime: 0.140
 */

import java.math.BigInteger;
import java.util.Scanner;
import java.util.StringTokenizer;

public class Main    {


    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        StringTokenizer st2 = null;
        BigInteger N1 = null;
        BigInteger N2 = null;
        BigInteger N3 = null;


        BigInteger N4 = null;
        BigInteger R1 = null;
        BigInteger R2 = null;
        String[] S0 = null;
        String S1 = null;
        String S2 = null;
        String S3 = null;
        String S4 = null;


        String S5 = null;
        String X = null;
        String Y = null;
        Integer I = null;
        Integer I2 = null;
        char[] C = null;
        while (sc.hasNext())
        {
            st2 = null;


            N1 = null;
            N2 = null;
            N3 = null;
            N4 = null;
            R1 = null;
            R2 = null;
            S1 = null;
            S2 = null;
            S3 = null;


            S4 = null;
            S5 = null;
            X = null;
            Y = null;
            I = null;
            I2 = null;
            C = null;
            try{
                S0 = sc.nextLine().split(" ");


                if(S0.length < 2){
                    throw new Exception();
                }
                X = S0[0];
                Y = S0[1];
                st2 = new StringTokenizer(X,".");


                S1 = st2.nextToken();
                if(!st2.hasMoreTokens()){
                    S2=S1;
                    S1="0";
                }else{
                    S2 = st2.nextToken();


                }
                st2 = new StringTokenizer(Y,".");
                S3 = st2.nextToken();
                S4 = st2.nextToken();
                if(S1.length()>S3.length()){
                  I=S1.length()-S3.length();


                  for(int i=0;i<I;i++){
                      S3+=0;
                  }
                }else if(S1.length()<S3.length()){
                  I=S3.length()-S1.length();
                  for(int i=0;i<I;i++){


                      S1+=0;
                  }
                }
                //System.out.println(S1+S3);
                if(S2.length()>S4.length()){
                  I=S2.length()-S4.length();


                  for(int i=0;i<I;i++){
                      S4+=0;
                  }
                }else if(S2.length()<S4.length()){
                  I=S4.length()-S2.length();
                  for(int i=0;i<I;i++){


                      S2+=0;
                  }
                }
                I2 = S4.length();
                N1 = BigInteger.valueOf(Long.parseLong(S1));
                N2 = BigInteger.valueOf(Long.parseLong(S2));


                N3 = BigInteger.valueOf(Long.parseLong(S3));
                N4 = BigInteger.valueOf(Long.parseLong(S4));
                R1 = N1.add(N3);
                R2 = N2.add(N4);
                S5 = R2.toString();


                C = S5.toCharArray();
                I2 = S5.length()-I2;
                if(I2>0){
                    S5 = "";
                    for(int i = 0; i<I2; i++){
                        S5 += C[i];


                    }
                    S1 = "";
                    for(int i = I2;i<C.length;i++){
                        S1 += C[i];
                    }
                    R1 = R1.add(BigInteger.valueOf(Long.parseLong(S5)));


                    R2 = BigInteger.valueOf(Long.parseLong(S1));
                }
                System.out.println(R1+"."+R2);
            }catch (Exception e){
                System.out.println();


            }
        }
    }
}