Quadrilateral $ABCD$ has integer side lengths, and angles $\angle ABC$, $\angle ACD$, and $\angle BAD$ are right angles. Compute the smallest possible value of $AD$.

Let's think step by step and output the final answer within \boxed{}.
user