Margarite and the best present

Problem Name:
Margarite and the best present
Site:CodeForces
Links:
Tags:
Problem setters: