Eight less than two-fifths of the seventh grade students had a perfect attendance in the first quarter. If 142 students had perfect attendance, how many seventh grade students are there?