Thermodynamics

A cyclic device claims to extract heat from a single reservoir and convert all of it into work, with no other effect. Which principle does this violate?