Street magic

Problem Name:
Street magic
Site:CodeForces
Links:
Tags:
Problem setters: