A train from Handan to Beijing had 478 people on board before arriving at Shijiazhuang Station, 328 people got on the train at Shijiazhuang Station, and 288 passengers got off the train. After the train departs from Shijiazhuang Station, how many passengers are there in total?
一列从邯郸开往北京的火车，在到石家庄站之前，车上有478人，在石家庄站上车的有328人，下车的乘客有288人．火车从石家庄站开出后，车上共有乘客多少人？
<gadget id="calculator">328 - 288</gadget>
<output>40</output>

<gadget id="calculator">478 + 40</gadget>
<output>518</output>

<result>518</result>