recently n student city S move city p attend programming campthey move train in evening student train decide want drink tea of course people use teapot simultaneously student form queue teaith student come end queue beginning lith second if multiple student come queue moment student great index come student less index Students queue behave follow queue student use teapot exactly second leave queue tea student wait people tea if begin rith second student tea queue leave queue get tea for student determine second use teapot tea actually get