In rectangle $ABCD$, $AB=100$. Let $E$ be the midpoint of $\overline{AD}$. Given that line $AC$ and line $BE$ are perpendicular, find the greatest integer less than $AD$.
In rectangle $ABCD$, $AB=60$. Let $E$ be the point on $\overline{AD}$ with $AE=\frac25AD$. Given that line $AC$ and line $BE$ are perpendicular, find the greatest integer less than $AD$.