In one cycle, a heat engine takes in 1000 J of heat from a high-temperature reservoir, releases 600 J of heat to a lower-temperature reservoir, and does 400 J of work. What is its efficiency?