(Codeforces Round #483 (Div. 2) [Thanks, Botan Investments and Victor Sha)
A.Gametimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputTwoplayersplayagame.Initiallytherearennintegersa1,a2,…,ana1,a2,…,anwrittenontheboard.Eachturnaplayerse