Buy a Ticket

Problem Name:
Buy a Ticket
Site:CodeForces
Links:
Tags:
Problem setters: