The program receives a five-digit number as input (the 3rd digit of the number is not equal to zero). Output on the screen two numbers separated by a space: the largest sum of digits among the sum of digits 1 and 2 and the sum of digits 4 and 5, and print the number of digits that are multiples of the 3rd digit (excluding the 3rd digit).
Examples
# |
Input |
Output |
1 |
13245 |
9 1 |