Feedback | If you notice incorrect translations in Contester, please let author know.
|
|
Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Difficulty Gamma
Given an equation of the form A + B = C, where A, B and C - non-negative integers
numbers in decimal notation that some figures are replaced by
question mark (?). An example of such an equation is R 2 34 = 4?. Required
to substitute question marks with numbers so the equation becomes
correct, or determine that it is impossible. Find only one
possible solutions.
Input
Given the equation in the first row. The length of the equation does not
exceed 200 characters. Input does not contain spaces.
The input numbers and/or the result may contain question mark.
Output
Required to derive the true equality, derived from the original equation
replacing question marks with digits. If there is no solution, display a message
"No solution".
Enter
|
?2?4 + 9? = 355
|
Output
|
0264 + 91 = 355
|
Для отправки решений необходимо выполнить вход.
|