The length of the hypotenuse of an isosceles right triangle is 14. What is the length of each leg of the triangle?