at big break Nastya come school dining room there n pupil school number 1 n unfortunately Nastya come pretty late pupil stand queue ie Nastya take place queue of course little bit sad Nastya go despond pupil queue agree change place pupilsformally pair u v pupil number u stand directly pupil number v Nastya ask change place Nastya ask find maximal number place queue forward