#K36547. Evaluate Addition Expression

    ID: 25778 Type: Default 1000ms 256MiB

Evaluate Addition Expression

Evaluate Addition Expression

You are given an expression in the form of a string representing an addition of one or more non-negative integers. The expression follows the format S=a1+a2++anS = a_1 + a_2 + \cdots + a_n, where each aia_i is a non-negative integer and the '+' operator is used between each pair of numbers. Your task is to compute and output the sum of these integers.

For example, if the input is "12+34+5", the output should be 51.

inputFormat

The input consists of a single line that contains a non-empty string representing an addition expression. The expression consists only of digits and the '+' character. There are no spaces in the input.

outputFormat

Output a single integer which is the sum of the numbers in the given expression.## sample

12+34+5
51