Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/boolean-haqiqiy-ildiz-bormi

Is there a real root?

Easy 1000 ms 64 MB 20%
Share

The coefficients $a$, $b$ and $c$ of a quadratic equation are given:

$$a * x^{2} + b * x + c = 0$$

Check whether the statement is true: “the equation has at least one real root”.

A parabola and its intersection with the x axis

Input

One line with three integers: $a$, $b$ and $c$.

Output

One integer: $1$ if the statement is true, otherwise $0$.

Note

$-1000 \le a, b, c \le 1000$
$a \ne 0$

Examples

Input #1
1 -3 2
Output #1
1
Input #2
1 1 1
Output #2
0

Sign in to submit a solution

Signing up is free and takes a minute.