#!/usr/bin/python import sys total=0 while 1: try: line = sys.stdin.readline() if not line: break total += int(line) print total except: sys.exit(1)