/* The Great Win32 Language Shootout http://dada.perl.it/shootout/ 
   contributed by Isaac Gouy (Nice novice)

To compile:	
   nicec --sourcepath=.. -d=. -a sumcol.jar sumcol

To run:
   java -jar sumcol.jar < input.txt > out.txt
*/


import java.io.*;

void main(String[] args){
   int sum = 0;

   try {
      BufferedReader reader = bufferedStdInReader();
      ?String line;
      while (( line = reader.readLine()) != null)
         sum += Integer.parseInt(line);
   } 
   catch (IOException e) { 
      System.err.println(e); 
   }

   println(sum);
}


BufferedReader bufferedStdInReader() = 
   new BufferedReader(new InputStreamReader(System.in));