An altitude of a pentagon is the perpendicular drop from a vertex to the opposite side. A median of a pentagon is the line joining a vertex to the midpoint of the opposite side. If the five altitudes and the five medians all have the same length, prove that the pentagon is regular.