topcoder/srm/557: FoxAndMountainEasy complete