The -multifactorial of is denoted by \text{fac}[k](n) and is defined as the product of every positive number of the form n - k \cdot x, where x = 0, 1, 2, \ldots.
A formal definition of multifactorial is:
You will be given and and have to evaluate the value of \text{fac}[k](n). If the result is strictly greater than 10^{18}, you must print overflow.
Two integers and (1 \le n, k \le 2 \times 10^9).
Print the value of \text{fac}[k](n). If it is strictly greater than 10^{18}, print overflow.
Example 1
Example 2