9063 - Equation   

Description

Given five coefficients of an integer equation

determine the number of integer solutions (x1, x2, x3, x4, x5) for the above equation where xi are non-zero integers in the range [-50, 50].

Input

Input consists of lines of test cases. Each test case contains 5 coefficients (-50 ≤ ai ≤ 50) separated by spaces, and they occupy a single line. The input is terminated by end-of-file (EOF).

Output

For each test case, output the number of solutions on a single line.

Sample Input  Download

Sample Output  Download

Tags




Discuss