For the trapezoid ABCD E and F are the midpoints of
AC
and
BD
respectively.
Find the length of the segment
EF
, if AB = a, BC = b, CD = c, AD = d.