In an exam, the average was found to be 40 marks. After deducting computational errors, the marks of 100 candidates had to be changed from 60 to 30 each and the average came down to 35 marks. The total number of candidates who took the exam was ________.
1
700
2
600
3
500
4
400