#CCBCMCHIN0000040. Công thức Bhaskara (Bhaskara’s Formula)

Công thức Bhaskara (Bhaskara’s Formula)

Bhaskara’s Formula

Source: beecrowd

Version: Phuoc Hung OJ Extended

Problem Statement

Given real coefficients A,B,CA,B,C of Ax2+Bx+C=0Ax^2+Bx+C=0, calculate two real roots using the quadratic formula. If A=0A=0 or Δ=B2−4AC<0\Delta=B^2-4AC<0, print the specified failure message. Otherwise compute R1=(−B+Δ)/(2A)R_1=(-B+\sqrt{\Delta})/(2A) and R2=(−B−Δ)/(2A)R_2=(-B-\sqrt{\Delta})/(2A).

Input

One line contains real numbers A,B,CA,B,C using a decimal point.

Output

If the real roots cannot be computed, print exactly Impossivel calcular. Otherwise print R1 = ... and R2 = ... on separate lines with exactly five digits after the decimal point.

Subtasks

Subtask 1 (20 points): All coefficients have up to two decimal digits and absolute value at most 10. Subtask 2 (30 points): All coefficients have up to two decimal digits and absolute value at most 100. Subtask 3 (50 points): All coefficients have up to two decimal digits and absolute value at most 1000.

Examples

Example 1

Input

1 -3 2

Output

R1 = 2.00000
R2 = 1.00000

Explanation

The discriminant is 1; its square root is 1, yielding roots 2 and 1.

Example 2

Input

1 0 1

Output

Impossivel calcular

Explanation

The discriminant equals -4; no real square root exists.