1 import java.util.Scanner; 2 import java.math.BigInteger; 3 4 class a424 5 { 6 public static void main(String[] args) 7 { 8 BigInteger sum = BigInteger.valueOf(0); 9 BigInteger zero = BigInteger.valueOf(0); 10 Scanner sc = new Scanner(System.in); 11 while(true) 12 { 13 BigInteger V = sc.nextBigInteger(); 14 if(V.equals(zero)) break; 15 sum = sum.add(V); 16 } 17 System.out.println(sum); 18 } 19 } 20