CodeLab Academy 📞 9936 6696
← List Python · Level 8: Nested loops Code · 80 points ← #789 #791 →

#790. Count the non-negative pairs with x² + y² = n

Use nested loops to count the **non-negative pairs with x² + y² = n**. ### Input One integer (0 ≤ value ≤ 200). ### Output A number.

Examples

Input
68
Output
2
Input
155
Output
0

💡 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!