(A.Myakishev, 9--10) Given triangle ABC. One of its excircles is tangent to the side BC at point A1 and to the extensions of two other sides. Another excircle is tangent to side AC at point B1. Segments AA1 and BB1 meet at point N. Point P is chosen on the ray AA1 so that AP\equal{}NA_1. Prove that P lies on the incircle. geometryincentergeometry proposed