P6500 [COCI 2010/2011 #3] ZBROJ
Description
The teacher gave Perica two numbers $a$ and $b$. Perica copied them into his notebook and wants to compute their sum.
While copying, Perica might mistakenly copy the digit $6$ in $a$ or $b$ as $5$, or mistakenly copy the digit $5$ as $6$. Of course, he might also copy them correctly.
Given $a$ and $b$, find the minimum and maximum possible values of the sum Perica computed.
Input Format
The input contains only one line with two integers, which are $a$ and $b$.
Output Format
Output one line with two integers: the minimum possible sum and the maximum possible sum.
Explanation/Hint
#### Constraints
For all testdata, it is guaranteed that $1 \leq a, b \leq 10^6$.
#### Notes
**This problem is translated from [COCI2010-2011](https://hsin.hr/coci/archive/2010_2011/) [CONTEST #3](https://hsin.hr/coci/archive/2010_2011/contest3_tasks.pdf) *T2 ZBROJ***.
Translated by ChatGPT 5