Fairy, the treacherous mailman

Problem Name:
Fairy, the treacherous mailman
Site:CodeForces
Links:
Tags:
Problem setters: