On every June 1st, the Children's Day, there will be a game named "crashing balloon" on TV.
Inevitably, though, disputes arise, and so the official winner is not determined until the disputes are resolved.
So, for example, if one player claims 343 points and the other claims 49, then clearly the first player is lying; the only way to score 343 is by crashing balloons labeled 7 and 49, and the only way to score 49 is by crashing a balloon labeled 49.
On the other hand, if one player claims 162 points and the other claims 81, it is possible for both to be telling the truth (e.g. one crashes balloons 2, 3 and 27, while the other crashes balloon 81), so the challenge would not be upheld.
By the way, if the challenger made a mistake on calculating his/her score, then the challenge would not be upheld. For example, if one player claims 10001 points and the other claims 10003, then clearly none of them are telling the truth. In this case, the challenge would not be upheld.
Unfortunately, anyone who is willing to referee a game of crashing balloon is likely to get over-excited in the hot atmosphere that he\she could not reasonably be expected to perform the intricate calculations that refereeing requires.
Input
Pairs of unequal, positive numbers, with each pair on a single line, that are claimed scores from a game of crashing balloon.Output
Numbers, one to a line, that are the winning scores, assuming that the player with the lower score always challenges the outcome.Sample Input
343 49 3599 610 62 36
Sample Output
49 610 62
Source: Zhejiang University Local Contest 2001
源码:

解题报告:题目的意思:分两种情况(1)高分撒谎,低分没撒谎,算低分赢。(2)其余情况算高分赢。即高分