A class of 20 students is waiting to find out whether they will graduate. In order to graduate, they need to wait for S teachers to submit their grades for classes A, B, C, D and E. The teachers always submit the grades in the same order (i.e., they will each submit the grade for student 1 first, followed by those for student 2, etc…).