A person may confuse the digits 5 and 6. When reading a 5, they may see it as 5 or mistakenly as 6; when reading a 6, they may see it as 6 or mistakenly as 5.
Given two integers A and B, there are several possible values for A+B under this reading. Find the minimum and maximum possible sums.
The first line contains two integers A and B. (1 <= A, B <= 1,000,000)
Print the minimum and maximum possible sums, separated by a space.