spoj0; solve "Guess Game" from Contest 117