Croc Champ 2013 Round 2 Problem D Ksusha and Square