A commuter airplane must make two stops before reaching its final destination. From its origin, the plan flies 300 miles west to reach its first destination, and 400 miles north to reach its second destination. Finally, it flies 700 miles east to reach its final destination. What is the straight-line distance between its origin and its final destination?