#!/usr/bin/python3

# Python program to sum many large integers separated by spaces or newlines.
# The integers to sum may be entered on the command-line or into standard input.

import sys

if len(sys.argv)>1:
    args = sys.argv[1:]
else:
    args = (w for s in sys.stdin for w in s.split())
print(sum(map(int, args), 0))
