Boarding Queue

Problem Name:
Boarding Queue
Site:CodeForces
Links:
Tags: