Two cones have their heights in the ratio 1:3 and their radii in the ratio 3:1. Find the ratio of their volumes.