#766. Pythagorean triples
You are given n. Count the triples with a < b < c ≤ n and a² + b² = c².
### Input
One integer n (1 ≤ n ≤ 150).
### Output
A number.
Examples
Input
121
Output
66
Input
14
Output
3
💡 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.