The segments $BF$ and $CN$ are the altitudes in the acute-angled triangle $ABC$. The line $OI$, which connects the centers of the circumscribed and inscribed circles of triangle $ABC$, is parallel to the line $FN$. Find the length of the altitude $AK$ in the triangle $ABC$ if the radii of its circumscribed and inscribed circles are $R$ and $r$, respectively. (Grigory Filippovsky)
Problem
Source: V.A. Yasinsky Geometry Olympiad 2020 X-XI advanced p3 , Ukraine
Tags: geometry, circumcircle, incenter, altitudes, inradius