Show that if all geodesics of a connected surface are plane curves, then the surface is contained in a plane or a sphere.