A heat engine receives 800 W heat at 870 K and reject 500 W to the ambient at 300 K. The ratio of first law efficiency to second law efficiency is