#P157. 【例26.3】 多数求和

【例26.3】 多数求和

Description

Input several numbers (no more than 1000 numbers) and calculate their sum.

Input Format

A single line containing several space-separated integers ai (1 ≤ ai ≤ 10^4), ending with -1. (The -1 should not be included in the sum)

Output Format

A single integer representing the sum of these numbers.

Sample

10 20 30 -1
60