It is known that from these five segments it is possible to form four different right triangles. Find the ratio of the largest segment to the smallest.

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