Misha, Grisha and Underground

Problem Name:
Misha, Grisha and Underground
Site:CodeForces
Links:
Tags:
Problem setters: