The projection of the f-vectors of 4-polytopes onto the (E, S)-plane

We characterize all pairs of integers (E, S) such that there exist convex 4-dimensional polytopes with exactly E edges and S 2-dimensional faces.