n,m=map(int,input().split())
a=[0]*(m+1)
mod=1000000007
for i in range(m):
    a[i]=int(input())
s=[1,1]
j=0
for i in range(2,n+1):
    if i-1==a[j]:
        s[i-1]=0
        j+=1
    s.append(s[i-1]+s[i-2])

print(s[n]%mod)

 n,m=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split m a=[0]*(m+1) a [0]*(m+1) [0] 0 m+1 m 1 mod=1000000007 mod 1000000007 for i in range(m):
    a[i]=int(input()) i range(m) range m a[i]=int(input()) a[i] a i int(input()) int input() input s=[1,1] s [1,1] 1 1 j=0 j 0 for i in range(2,n+1):
    if i-1==a[j]:
        s[i-1]=0
        j+=1
    s.append(s[i-1]+s[i-2]) i range(2,n+1) range 2 n+1 n 1 if i-1==a[j]:
        s[i-1]=0
        j+=1
     i-1==a[j] i-1 i 1 a[j] a j s[i-1]=0 s[i-1] s i-1 i 1 0 j+=1 j 1 s.append(s[i-1]+s[i-2]) s.append s append s[i-1]+s[i-2] s[i-1] s i-1 i 1 s[i-2] s i-2 i 2 print(s[n]%mod) print s[n]%mod s[n] s n mod j+=1 1 j mod=1000000007 1000000007 mod n,m=map(int,input().split()) map(int,input().split()) n a=[0]*(m+1) [0]*(m+1) a j=0 0 j m=map(int,input().split()) map(int,input().split()) m s=[1,1] [1,1] s
n,m=map(int,input().split())
a=[0]*(m+1)
mod=1000000007
for i in range(m):
    a[i]=int(input())
s=[1,1]
j=0
for i in range(2,n+1):
    if i-1==a[j]:
        s[i-1]=0
        j+=1
    s.append(s[i-1]+s[i-2])

print(s[n]%mod)


