eolymp
Competitions

Ternary search

Ternary search

Find the minimum of a function f(x) = x2 + a * x + b.

Input

Two integers a and b (|a|, |b| ≤ 106).

Output

Print the value of x where the function f(x) is minimal. Print the answer with 2 decimal digits. It is known that |x| ≤ 100.

Time limit 1 second
Memory limit 128 MiB
Input example #1
-2 -35
Output example #1
1.00
Author Mykhailo Medvediev