You are given a set of integers a_1, a_2, \ldots, a_n. Determine the number of integers in the range from to (inclusive) that are divisible by at least one number from this set.
The input consists of multiple test cases. The first line of each test case contains two integers l~(1 \le l \le 10^9) and r~(1 \le r \le 10^9), which define the range boundaries. The second line contains the number of elements n~(1 \le n \le 18) in the set and the set of integers a_1, a_2, \ldots, a_n. Each integer in the set is between and 10^9.
For each test case, output a single line containing the number of integers in the range [l, r] that are divisible by at least one number from the set a_1, a_2, \ldots, a_n.
Example 1