A characteristic property of spheres