# Ternary search

# Dense forest

To prevent the appearance of sanitary inspection in the camp, the LKSH administration dug the only road connecting the "Berendevy polyany" with Sudislavl, so now it is impossible to travel along it. However, the difficulties did not stop the inspection, for it remains only one possibility - to reach the camp on foot. As you know, Sudislavl is in the field, and "Berendevy polyany" are in the forest.

- Sudislavl is located at the point with coordinates (
**0**,**1**). - "Berendevy polyany" are located at the point with coordinates (
**1**,**0**). - The border between the field and forest is a horizontal line
**y**=**a**, where**a**is some number (**0**≤**a**≤**1**). - The speed of sanitary inspection through the field is
`V`

, the speed through the forest is_{p}`V`

. Along the border it is allowed to move either by forest or by field._{f}

The LKSH administration want to know how much time left to prepare for sanitary inspection visit. It asked you to find out at what point the sanitary inspection should enter into the forest to reach "Berendevy polyany" as fast as possible.

#### Input

First line contains two positive integers `V`

and _{p}`V`

(_{f}**1** ≤ `V`

, _{p}`V`

≤ _{f}`10`

). Second line contains one real number - the ^{5}**Oy** coordinate of the border between the forest and field **a** (**0** ≤ **a** ≤ **1**).

#### Output

Print one real number with accuracy of no less than **8** digits after the decimal point - the **Ox** coordinate of the point at which the sanitary inspection will enter the forest.

5 3 0.4

0.783310604

5 5 0.5

0.500000000