11.168. The base of the pyramid is a rectangle with an area of $S$. Two lateral faces are perpendicular to the base plane, while the other two are inclined to it at angles of 30 and $60^{\circ}$. Find the volume of the pyramid.