// sumNumsWithEOF.cc  P. Conrad 
// find sum of sequence of numbers
// one per line   02/28/2007

#include <iostream>
using namespace std;

int main()
{

  int thisNum;
  int sum = 0;


  cin >> thisNum;
  while ( !cin.eof() ) // while not end of file
    {
      sum += thisNum; // adding thisNum into sum
      cin >> thisNum;
     
    }

  cout << sum << endl;

  return 0;

}

