Let $ABCD$ be a rectangle. Circles with diameters $AB$ and $CD$ meet at points $P$ and $Q$ inside the rectangle such that $P$ is closer to segment $BC$ than $Q$. Let $M$ and $N$ be the midpoints of segments $AB$ and $CD$. If $\angle MPN = 40^\circ$, find the degree measure of $\angle BPC$.

Let's think step by step and output the final answer within \boxed{}.
user