#K36547. Evaluate Addition Expression
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 , where each 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