Interesting Product#916

Interesting Product

1 second
128 megabytes
Very easy

Determine all possible unique values of the product i \cdot j, where the integer variables and range from to , and to , respectively.

1 \leq a, b, c, d \leq 10. Note that may be greater than , and may be greater than .

Input

One line contains four integers , , , and .

Output

Print the number of unique possible values of the product.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading