B. Digit Sum
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Example
Input
11 3
Output
137