Simple task#5212

Simple task

1 second
128 megabytes
Easy

Determine the count of natural numbers within the interval from to , inclusive, that are not divisible by any of the specified distinct prime numbers p_i.

Input

The first line provides two integers, and (1 \le a \le b \le 10^{18}), representing the interval's boundaries. The second line specifies the number of prime numbers, (1 \le n \le 9). The third line lists the prime numbers p_i, each of which is distinct and does not exceed .

Output

Print the count of natural numbers that meet the criteria.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading

Example 4

Loading
Loading