A cylinder is filled to four-fifths of its volume. It is then tilted so that the level of water coincides with one edge of its bottom and the top edge of the opposite side. In the process, 30 cc of water is spilled. What is the volume of the cylinder?