Thermodynamics

A heat engine absorbs 1200 J from a hot reservoir and rejects 800 J to a cold reservoir per cycle. How much work does it produce per cycle?