1639. Chocolate 2

Problem Name:
1639. Chocolate 2
Site:Timus
Links:
Tags:
Problem setters:
Alexander Pronchenkov (prepared by Ivan Burmistrov)