Igor K. very much likes a multiplayer role playing game WineAge II. Who knows, perhaps, that might be the reason for his poor performance at the university. As any person who plays the game, he is interested in equipping his hero with as good weapon and outfit as possible. 

One day, as he was reading the game's forum yet again, he discovered a very interesting fact. As it turns out, each weapon in the game is characterised with *k* different numbers: *a*<sub class="lower-index">1</sub>, ..., *a*<sub class="lower-index">*k*</sub>. They are called hit indicators and according to the game developers' plan they are pairwise coprime. 

The damage that is inflicted during a hit depends not only on the weapon's characteristics, but also on the hero's strength parameter. Thus, if the hero's strength equals *n*, than the inflicted damage will be calculated as the number of numbers on the segment <img align="middle" class="tex-formula" src="https://espresso.codeforces.com/68f0ea4caea983197d3454dee41e9ad4ed403e49.png" style="max-width: 100.0%;max-height: 100.0%;"/>, that aren't divisible by any hit indicator *a*<sub class="lower-index">*i*</sub>.

Recently, having fulfilled another quest, Igor K. found a new Lostborn sword. He wants to know how much damage he will inflict upon his enemies if he uses it.
The first line contains two integers: *n* and *k* (1 ≤ *n* ≤ 10<sup class="upper-index">13</sup>, 1 ≤ *k* ≤ 100). They are the indicator of Igor K's hero's strength and the number of hit indicators.

The next line contains space-separated *k* integers *a*<sub class="lower-index">*i*</sub> (1 ≤ *a*<sub class="lower-index">*i*</sub> ≤ 1000). They are Lostborn sword's hit indicators. The given *k* numbers are pairwise coprime.
none
dat=input("")
dat1=input("")
x=dat.split()
y=dat1.split()
lis=[]
ggg=[]
for i in range (1,int(x[0])+1):
    i=int(i)
    lis.append(i)
    ggg.append(i)

n=0
for o in ggg:
    for q in y:
        if o%int(q)==0:
            lis.remove(o)
            break
print(len(lis))

               
               
