#C11253. Sum of Digits and Augmented Number
Sum of Digits and Augmented Number
Sum of Digits and Augmented Number
Given a non-negative integer \(n\), let \(S(n)\) denote the sum of its digits. Your task is to compute the value of \(f(n)\) defined as:
\[ f(n) = n + S(n), \]Input Constraint: \(0 \leq n \leq 10^7\).
Examples:
- If \(n = 123\), then \(S(123) = 1+2+3 = 6\) and thus \(f(123) = 123 + 6 = 129\).
- If \(n = 2021\), then \(S(2021) = 2+0+2+1 = 5\) and thus \(f(2021) = 2021 + 5 = 2026\>.
Implement a program that reads an integer \(n\) from standard input and outputs \(f(n)\) to standard output.
inputFormat
The input consists of a single line containing one non-negative integer \(n\).
outputFormat
Output the computed value \(f(n) = n + S(n)\) on a single line.
## sample123
129
</p>