Given the task definition and input, reply with output. The task is to generate the correct answer for a given math problem.

Problem: the average mark of the students of a class in a particular exam is 80 . if 8 students whose average mark in that exam is 20 are excluded , the average mark of the remaining will be 90 . find the number of students who wrote the exam .
5