In $\triangle ABC$ the median $AM$ is drawn. The foot of perpendicular from $B$ to the angle bisector of $\angle BMA$ is $B_1$ and the foot of perpendicular from $C$ to the angle bisector of $\angle AMC$ is $C_1.$ Let $MA$ and $B_1C_1$ intersect at $A_1.$ Find $\frac{B_1A_1}{A_1C_1}.$