Three Spheres on a Surface