Quadrangle $ABCD$ is inscribed in a circle with diameter $AC$. Points $K$ and $M$ are projections of vertices $A$ and $C$, respectively, onto line $BD$. A line parallel to $BC$ is drawn through point $K$ and intersecting $AC$ at point $P$. Prove that angle $KPM$ is a right angle.
Problem
Source: Russian Regional Olympiad 2010 11.3
Tags: geometry, perpendicular bisector, cyclic quadrilateral