A machine whose part is weightless and frictionless, such that whatsoever is energy spent on it, the same energy produced by it, is called an ideal machine.
A machine can't be ideal, as weightlessness and frictionless surface are practically not possible.