In the triangle $ABC$, the side $BC$ is equal to $a$. Point $F$ is midpoint of $AB$, $I$ is the point of intersection of the bisectors of triangle $ABC$. It turned out that $\angle AIF = \angle ACB$. Find the perimeter of the triangle $ABC$. (Grigory Filippovsky)
Problem
Source: V.A. Yasinsky Geometry Olympiad 2019 VIII-IX advanced p4, X-XI advanced p4 [Ukraine]
Tags: geometry, perimeter, equal angles, incenter