When did humans discover apples?

When apples were first discovered is lost in the mists of time, but it was a good thing.