The heat <span>Q(in)</span> supplied to the system in one stage of the cycle, minus the heat <span>Q(out)</span> removed from it in another stage of the cycle; plus the work added to the system <span>W(in)</span> equals the work that leaves the system <span>W(<span>out)</span></span>