#P15086. [UOI 2025 II Stage] A+B=C
[UOI 2025 II Stage] A+B=C
题目描述
Us the Cossack laid out matches on the table to form the expression (not necessarily correct) , where are single-digit integers from to .
:::align{center}
:::
Vus the Cossack noticed this expression and wants to move the matches in the numbers and so that the expression becomes correct. That is, the , and cannot be changed.
Can Vus make the expression correct?
输入格式
The first line contains three integers , , and .
输出格式
Print , if it is possible to do so, or otherwise.
4 8 2
Yes
5 0 5
Yes
1 5 8
No
提示
In the first example:
:::align{center}
:::
In the second example, the equality holds immediately.
In the third example, it is impossible to rearrange the matches.