import java.math.*;
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args)
    {
        Scanner cin = new Scanner(new BufferedInputStream(System.in));
        BigInteger sum = BigInteger.valueOf(0);
        BigInteger curr;
        while ( cin.hasNext() )
        {
            curr = cin.nextBigInteger();
            if ( curr.compareTo(BigInteger.valueOf(0)) == 0 )
                break;
            sum = sum.add(curr);
        }
        System.out.println(sum);
    }
}

 

posted on 2013-05-02 00:58  Sinker  阅读(117)  评论(0编辑  收藏  举报