Madoka and the Elegant Gift

Problem Name:
Madoka and the Elegant Gift
Site:CodeForces
Links:
Tags:
Problem setters: