CodeLab Academy 📞 9936 6696
← List Python · Level 3: Conditions (if) Code · 30 points ← #220 #222 →

#221. Number of roots of a quadratic equation

You get a, b, c (a ≠ 0) of the equation a·x² + b·x + c = 0. Print how many real roots it has (0, 1 or 2). ### Input a, b, c, each on its own line. ### Output 0, 1 or 2.

Examples

Input
1
2
1
Output
1
Input
1
-3
2
Output
2

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!