You are trying to distribute 566 ice creams and 183 cookies evenly to all of the students in a class. But you end up having 5 ice creams left and 4 cookies short. What is the maximum number of students in the class?

187. each got 3 ice creams and each (except 4 of them) received 1 cookie