Let
S(n)
be the sum of the decimal digits of the integer
n
. For example, S(123)=1+2+3=6.
Given two
three-digit integers
A
and
B
, find the greater of
S(A)
and
S (B)
.
Input
The input is a single string containing two integers
A
and
B
(100 <= A, B <= 999).
Imprint
Print the larger value of
S(A)
and
S(B)
. If they are equal, print
S(A)
.
Please note that division operations cannot be used when solving the problem.
Examples
# |
Input |
Output |
1 |
123 234 |
9 |
Запрещенные операторы:/;%;div;mod;-