Pick the hot and cold temperatures and the heat you feed in. The first law balances the energy; the second law caps the work you can ever get back out.
η = 1 − Tc / Th · W = η·Qh · Qc = Qh − W