#t16. 计算正整数序列中奇数的和

计算正整数序列中奇数的和

Sum of Odd Numbers in a Positive Integer Sequence

Problem Description

Given a sequence of positive integers, compute the sum of the odd numbers among them. When a zero or a negative integer is read, the input ends and that number is not counted.

Input Format

The input gives a sequence of positive integers on one line, separated by spaces. When a zero or a negative integer is read, the input ends and that number should not be processed.

Output Format

Output the sum of the odd numbers in the positive integer sequence on one line.

Sample Input

8 7 4 3 70 5 6 101 -1

Sample Output

116

Constraints

The number of positive integers in the input does not exceed 10510^5, and the absolute value of each positive integer does not exceed 10910^9.