Input (grade 10): Trains on lines 2, 6, 7, 9 and 10 consist of eight cars, on lines 1, 3, 8 of seven cars and on lines 4, 5 and 11 of six cars.
Output (grade 7): Trains on lines 2, 6, 7 and 9 have eight cars, on lines 1, 3, 8, 10 seven cars and on lines 4, 5 and 11 six cars.