Input (grade 13): In every grade, each department is designated into numbers; classes 1 - 3 are English majors; class 4, French majors; class 5, German majors; classes 6 - 8, Chinese majors; classes 9 - 10, Japanese majors.
Output (grade 12): Classes 1 - 3 are English majors; class 4, French major; class 5, German major; classes 6 - 8, Chinese majors; classes 9 - 10, Japanese majors.