Stas and the Queue at the Buffet

Problem Name:
Stas and the Queue at the Buffet
Site:CodeForces
Links:
Tags:
Problem setters: