A sphere, a cylinder and a cone have the same diameter. The height of the cylinder and also the cone are equal to the diameter of the sphere. Find the ratio of their volumes.