#P1225A. Forgetting Things
Forgetting Things
No submission language available for this problem.
Description
Kolya is very absent-minded. Today his math teacher asked him to solve a simple problem with the equation with positive integers and , but Kolya forgot the numbers and . He does, however, remember that the first (leftmost) digit of was , and the first (leftmost) digit of was .
Can you reconstruct any equation that satisfies this property? It may be possible that Kolya misremembers the digits, and there is no suitable equation, in which case report so.
The only line contains two space-separated digits and ().
If there is no equation with positive integers and such that the first digit of is , and the first digit of is , print a single number .
Otherwise, print any suitable and that both are positive and do not exceed . It is guaranteed that if a solution exists, there also exists a solution with both numbers not exceeding .
Input
The only line contains two space-separated digits and ().
Output
If there is no equation with positive integers and such that the first digit of is , and the first digit of is , print a single number .
Otherwise, print any suitable and that both are positive and do not exceed . It is guaranteed that if a solution exists, there also exists a solution with both numbers not exceeding .