A wooden pyramid is to be cut into 2 parts of equal weights by a plane parallel to its base. Find the ratio of the heights of the two parts.