In a right-angled triangle where all side lengths are integers, one of the catheti has a length of $1994$. Determine the length of the hypotenuse.

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