Cancel the Trains

Problem Name:
Cancel the Trains
Site:CodeForces
Links:
Tags:
Problem setters: