A quadrilateral $$ABCD$$ in which $$AB=a, BC=b, CD=c, DA=d$$ such that one circle can be inscribed in it and another circle can be circumscribed about it. Then compute $$\cos A$$.