When the little sloppy was calculating an addition formula, he mistakenly regarded the 4 in the first addition of hundreds as 2, and the second addition of 5 in tens of digits as 3, and the calculated sum was 367. What should be the correct sum?
小马虎在计算一道加法以算式时，把第一个加数百位上的4错看成了2，第二个加数十位上的5错看成了3，计算得到的和为367．正确的和应该是多少？
<gadget id="calculator">400 - 200</gadget>
<output>200</output>

<gadget id="calculator">50 - 30</gadget>
<output>20</output>

<gadget id="calculator">367 + 200 + 20</gadget>
<output>587</output>

<result>587</result>