Mike and Chocolate Thieves

CodeForces - 689C