New Year and North Pole

CodeForces - 750B