A heat pump $\text{(H.P.)}$ is driven by the work output of a heat engine $\text{(H.E.)}$ as shown in the figure. The heat engine extracts $150 \mathrm{~kJ}$ of heat from the source at $1000 \mathrm{~K}$. The heat pump absorbs heat from the ambient at $280 \mathrm{~K}$ and delivers heat to the room which is maintained at $300 \mathrm{~K}$. Considering the combined system to be ideal, the total amount of heat delivered to the room together by the heat engine and heat pump is ___________ $\mathrm{kJ}$ (answer in integer).