In a school, 150 students participated in an annual event. Among them, 90 students took part in sports activities, and 70 students participated in cultural activities. If 40 students took part in both sports and cultural activities, how many students did not participate in either activity? Let's think step by step and output the final answer within \boxed{}.
user