#abc187a. [abc187_a]Large Digits
[abc187_a]Large Digits
Problem Statement
For an integer , let be the sum of digits in the decimal notation of . For example, we have .
Given two -digit integers and , find the greater of and .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the value of the greater of and .
If these are equal, print .
Sample Input 1
123 234
Sample Output 1
9
We have and , so we should print the greater of these: .
Sample Input 2
593 953
Sample Output 2
17
Sample Input 3
100 999
Sample Output 3
27