A circle is circumscribed about a triangle ABC. A tangent is drawn to the circle through the point B to intersect the extension of the side CA beyond the point A at the point D. Let P be the perimeter of triangle ABC. Given AB+AD=AC, CD=3 and ∠BAC=60∘ then the value of (3−√2)P is