1. 



/**
* Angewandte Mathematik, SS09, IFB 2C
* ACM Problem 424 - Integer Inquiry
* Link:
*
* @author Miesel Christoph
* @author Seilbeck Robert
* @author Wolfram Andre
* @version 1.0, 05/18/2009
*
* Status : Accepted
* Runtime: 0.192
*/

import java.math.*;
import java.util.*;
public class IntegerInquiry
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
BigInteger sum = new BigInteger("0");
BigInteger breaking = new BigInteger("1");
while(sc.hasNext())
{
breaking = new BigInteger(sc.next());
sum = sum.add(breaking);
if(breaking.toString().equals("0")) break;
}
System.out.println(sum.toString());
}
}