Given a square $ABCD$ with side $10$. On sides BC and $AD$ of this square are selected respectively points $E$ and $F$ such that formed a rectangle $ABEF$. Rectangle $KLMN$ is located so that its the vertices $K, L, M$ and $N$ lie one on each segments $CD, DF, FE$ and $EC$, respectively. It turned out that the rectangles $ABEF$ and $KLMN$ are equal with $AB = MN$. Find the length of segment $AL$.