An ordered quadruple of natural numbers (a, b, c, d) is called a quadroquadrature of a natural number if the following equation holds:
Quadroquadratures that differ in the order of the numbers are considered distinct.
Write a program that determines the number of quadroquadratures for a given natural number .
The input file contains a single natural number (1 \leq N \leq 1000000).
Print a single number—the number of quadroquadratures of .
Example 1