Problem Description

A list of integers is provided. Add numbers one by one until you see 0. Do not include 0 in sum. Output the sum.

Input Format

One line: integers separated by space (contains 0 at least once).

Output Format

One integer sum.

Sample Test Case

Input:
3 5 -2 0 9
Output:
6

Constraints

At least one 0 is present. Total count

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next