CSES - Prime Multiples
  • Time limit: 1.00 s
  • Memory limit: 512 MB

You are given kk distinct prime numbers a1,a2,,aka_1,a_2,\ldots,a_k and an integer nn.

Your task is to calculate how many of the first nn positive integers are divisible by at least one of the given prime numbers.

Input

The first input line has two integers nn and kk.

The second line has kk prime numbers a1,a2,,aka_1,a_2,\ldots,a_k.

Output

Print one integer: the number integers within the interval 1,2,,n1,2,\ldots,n that are divisible by at least one of the prime numbers.

Constraints

  • 1n10181 \le n \le 10^{18}
  • 1k201 \le k \le 20
  • 2ain2 \le a_i \le n

Example

Input:

20 2
2 5

Output:

12

Explanation: the 1212 numbers are 2,4,5,6,8,10,12,14,15,16,18,202,4,5,6,8,10,12,14,15,16,18,20.