Students of a school were made to stand in rows for drill. If 3 students less were standing in each row, 10 more rows were required and if 5 students more were standing in each row then the number of rows was reduced by 10. Find the number of students participating in the drill.