If you're pulling food out, you're gonna need to put nutrients in. Since there is nothing that is 100% efficient, you need to put in more nutrients than you pull out in food, and then deal with some waste too.
Nothing is perfect, but plenty is good enough.