A point $P{}$ is considered on the incircle of the triangle $ABC$. We draw the tangent segments from $P{}$ to the three excircles of $ABC$. Prove that from the obtained three tangent segments it is possible to make a right triangle if and only if the point $P{}$ lies on one of the lines connecting two of the midpoints of the sides of $ABC$.