#Lutece1815. Dward Gaming
Dward Gaming
Migrated from Lutece 1815 Dward Gaming
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
One day, clearlove7
and meiko
are playing a game
Now there are two numbers and . clearlove7
knows the value of , and meiko
knows the value of (clearlove7
knows that meiko
knows the value of , and meiko
knows that clearlove7
knows the value of , they all know )
they have a boring talking:
clearlove7
: I don't know the value of and .
meiko
:So do I, and I knew you don't know this just now.
clearlove7
: Now I know the value of and .
meiko
:So do I.
Give you and ().Find all and that satisfy the dialogue scenario. Suppose clearlove7
and meiko
are smart enough and do not lie.pls note that they know but don't know and .
Input
One line contains two numbers
Output
Output contains several lines.Each line contains two numbers and that satisfy the dialogue scenario.If two answers have the same , you should output the one with smaller first, otherwise output the one with smaller first.