The train arrives at the stop and its passengers will be not only people, but also animals, including fantastic ones. The trains have three carriages of different sizes: large, medium and small. You must accommodate passengers according to their size. Move each passenger to their seat.