A segment is m units long. Find the distance between the midpoints of the first and last parts if the segment is divided into 5 equal parts.