#C8345. Array Sum

    ID: 52317 Type: Default 1000ms 256MiB

Array Sum

Array Sum

You are given a single line of input containing a list of integers separated by spaces. Your task is to compute the sum of all these integers. If the input is empty or no numbers are provided, you should output 0.

The problem is straightforward: You need to read input from stdin and output the sum to stdout. Handle both positive and negative numbers, and ensure that your solution works even if the input line is empty.

inputFormat

The input consists of a single line containing zero or more integers separated by spaces.

outputFormat

Output a single integer representing the sum of all the numbers provided in the input.

## sample
1 2 3 4
10

</p>