CF1375F Integer Game

Description

This is an interactive problem. Anton and Harris are playing a game to decide which of them is the king of problemsetting. There are three piles of stones, initially containing $ a $ , $ b $ , and $ c $ stones, where $ a $ , $ b $ , and $ c $ are distinct positive integers. On each turn of the game, the following sequence of events takes place: - The first player chooses a positive integer $ y $ and provides it to the second player. - The second player adds $ y $ stones to one of the piles, with the condition that he cannot choose the same pile in two consecutive turns. The second player loses if, at any point, two of the piles contain the same number of stones. The first player loses if $ 1000 $ turns have passed without the second player losing. Feeling confident in his skills, Anton decided to let Harris choose whether he wants to go first or second. Help Harris defeat Anton and become the king of problemsetting!

Input Format

N/A

Output Format

N/A

Explanation/Hint

In the sample input, the piles initially have $ 5 $ , $ 2 $ , and $ 6 $ stones. Harris decides to go first and provides the number $ 2 $ to Anton. Anton adds $ 2 $ stones to the third pile, which results in $ 5 $ , $ 2 $ , and $ 8 $ . In the next turn, Harris chooses $ 3 $ . Note that Anton cannot add the stones to the third pile since he chose the third pile in the previous turn. Anton realizes that he has no valid moves left and reluctantly recognizes Harris as the king.