On Wednesday, 1,200 students stayed for SSC. Of the students who stayed, 25% stayed for math, 40% stayed for science and the rest stayed for History. How many students stayed for history?