Among 100 pupils, 60 study history, 50 study geography and 40 study civics. Of these, 30 study history and geography, 20 study geography and civics, 25 study history and civics, and 15 study all three. How many pupils study exactly one of the three subjects?