Walking Between Houses

Problem Name:
Walking Between Houses
Site:CodeForces
Links:
Tags:
Problem setters: