#C13033. Sum of Odd Numbers

    ID: 42527 Type: Default 1000ms 256MiB

Sum of Odd Numbers

Sum of Odd Numbers

You are given a sequence of integers. Your task is to filter out all even numbers and then sum all the odd numbers. An integer \( x \) is odd if \( x \mod 2 \neq 0 \). If there are no odd numbers, the sum is considered to be 0.

For example, given the input 1 3 5 7, the output should be 16 because \(1+3+5+7=16\).

Read the input from standard input and write the result to standard output.

inputFormat

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

outputFormat

Output a single integer, which is the sum of all odd numbers from the input.

## sample
1 3 5 7
16