certain school has held mathematics, Chinese, and natural three-subject competitions. Among the students participating in the competition, at least one subject: 184 Chinese, 223 mathematics, and 126 natural; at least two subjects: 100 Chinese and mathematics There are 86 students in Chinese and natural sciences, 93 in mathematics and natural sciences, and 50 students participated in all three subjects. What is the total number of students participating in the competition?
某校先后举行了数学、语文、自然三科竞赛，参加竞赛的学生中，至少参加一科的有：语文184人，数学223人，自然126人；至少参加两科的有：语文、数学100人，语文、自然86人，数学、自然93人，三科都参加的有50人，参加竞赛的学生总数是多少？
<gadget id="calculator">126 - 100 - 86 - 93</gadget>
<output>-153</output>

<gadget id="calculator">184 + 223 + (-153) + 50</gadget>
<output>304</output>

<result>304</result>