Answer:
It is impossible to construct a machine which produces the work output greater than the work input.
Let us consider the II law of thermodynamics.
According to Kelvin Plank's statement any engine/machine does not give hundred percent efficiency. And violating the PMM-II(Perpetual motion of machine II kind), Always some amount of energy transferred to the sink or surroundings.
Therefore
W(ouput) = Q₁-Q₂
There are many reasons to lower the work output, just for an example friction between the mating parts reduces the work output.