Davy Jones has captured another ship and is smiling contentedly under the sun. Today is a good day for him: he will get more souls to serve on his crew. But the day looks so nice, the sun shining brightly and the ocean lying calm, that he decides to be merciful and give the wretched seamen of the captured ship a chance. He plays the following game.
He lines the captives up in front of him and writes a number of his choice on each man's forehead. Then he wants to check whether the set of numbers is 3-free. A set is 3-free when no three of its numbers form an increasing arithmetic progression. A triple $(a_1, a_2, a_3)$ is an increasing arithmetic progression when $a_2 - a_1 = a_3 - a_2$ and $a_2 - a_1 > 0$ — for example ${1, 2, 3}$, ${4, 6, 8}$, or ${-2, 1, 4}$.
If the set of numbers is 3-free, the whole group goes free (what an irony). Otherwise, the men whose numbers form the lexicographically first witness — the lexicographically first triple that proves the set is not 3-free — will serve on Jones' crew for an eternity.
You are Jones' assistant: for the given group you must decide whether it is 3-free, and if it is not, report the lexicographically first witness. Check right, or you will end up on Jones' crew too.
A triple $(a_1, a_2, a_3)$ is lexicographically smaller than $(b_1, b_2, b_3)$ when:
You always look at triples in increasing order, i.e. $a_1 \le a_2 \le a_3$ (together with $a_2 - a_1 > 0$ this makes the three numbers distinct and strictly increasing). The numbers on the foreheads are not necessarily given in increasing order.
A single line. The first integer $N$ is the number of men in the group; it is not part of the sequence. It is followed by the $N$ integers written on their foreheads.
Print a single line.
If the given numbers are 3-free, print:
Sequence is 3-free.
Otherwise, print:
Sequence is not 3-free. Witness: w1,w2,w3.
where $(w_1, w_2, w_3)$ is the lexicographically first witness. The three witness numbers are separated by commas with no spaces; there is a single space after the period following 3-free. and a single space after the colon.