In a certain school, the number of people participating in outdoor activities was 480 more than the number of indoor activities. Now 50 people in indoor activities are changed to outdoor activities, so that the number of outdoor activities is exactly 5 times the number of indoor activities. There are a total of ______people.
某校原来参加室外活动的人数比室内活动的人数多480人，现在把室内活动的50人改为室外活动，这样室外活动的人数正好是室内人数的5倍，参加室内、室外活动的一共有______人．
<gadget id="calculator">50 + 50 + 480</gadget>
<output>580</output>

<gadget id="calculator">5 - 1</gadget>
<output>4</output>

<gadget id="calculator">580 / 4</gadget>
<output>145</output>

<gadget id="calculator">145 * 5</gadget>
<output>725</output>

<gadget id="calculator">725 + 145</gadget>
<output>870</output>

<result>870</result>