Triangle $ABC$ has sides of length $39$, $48$, and $71$. The bisector of angle $A$ cuts $BC$ at point $D$. Find the length of $AD$ in terms of $cos(\frac{A}{2})$.