// $Id: sumcol.csharp,v 1.0 2002/02/14 11:20:00 dada Exp $
// http://dada.perl.it/shootout/

using System;

class App {
    public static int Main(String[] args) {
        int sum = 0;

        for (String line = Console.In.ReadLine(); line != null; line = Console.In.ReadLine()) {
            sum += System.Convert.ToInt32(line);
        }
        Console.WriteLine(sum.ToString() + "\n");
        return(0);
    }
}