# Injured Picture

# Injured Picture

Roman figure `I`

, which stood on the floor of the room in point with coordinates `X`

and did not endure a relation to answer of problem of "Roman numerals". It flowed on the floor. Just as a bottom part of the Roman figure was fasted hinge, so it stayed at the place without change, but the top part of the Roman figure found oneself in point with coordinates _{0}, Y_{0}, 0`X`

. In the room stood vertical paper picture. You know coordinates of bottom parts _{1}, Y_{1}, 0`X`

and _{2}, Y_{2}, 0`X`

and height of picture _{3}, Y_{3}, 0`H`

.

Find the length "tear up of paper" on the picture.

#### Input

For input you have 9 numbers `X`

, _{0}`Y`

, _{0}`X`

, _{1}`Y`

, _{1}`X`

, _{2}`Y`

, _{2}`X`

, _{3}`Y`

, _{3}`H`

. All input data is integer numbers, which module not exceeds `10`

.^{9}

#### Output

The program gives you one number. It is value with precision to `0.001`

which you find.

1 1 6 1 4 0 4 5 6

4.000