N,M=map(int,input().split())
L=[0]*N
c={}
mod=1000000007
for i in range(M):
  k=int(input())
  c[k]=0
for i in range(N):
  if i==0:
    L[i]=1
  elif i==1:
    if L[0]==0:
      L[i]=1
    else:
      L[i]=2
  else:
    L[i]=(L[i-1]+L[i-2])%mod
  if i+1 in c:
    L[i]=0
print(L[N-1]) N,M=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split M L=[0]*N L [0]*N [0] 0 N c={} c {} mod=1000000007 mod 1000000007 for i in range(M):
  k=int(input())
  c[k]=0 i range(M) range M k=int(input()) k int(input()) int input() input c[k]=0 c[k] c k 0 for i in range(N):
  if i==0:
    L[i]=1
  elif i==1:
    if L[0]==0:
      L[i]=1
    else:
      L[i]=2
  else:
    L[i]=(L[i-1]+L[i-2])%mod
  if i+1 in c:
    L[i]=0 i range(N) range N if i==0:
    L[i]=1
  elif i==1:
    if L[0]==0:
      L[i]=1
    else:
      L[i]=2
  else:
    L[i]=(L[i-1]+L[i-2])%mod
   i==0 i 0 L[i]=1 L[i] L i 1 elif i==1:
    if L[0]==0:
      L[i]=1
    else:
      L[i]=2
   i==1 i 1 if L[0]==0:
      L[i]=1
    else:
      L[i]=2
   L[0]==0 L[0] L 0 0 L[i]=1 L[i] L i 1 L[i]=2 L[i] L i 2 L[i]=(L[i-1]+L[i-2])%mod L[i] L i (L[i-1]+L[i-2])%mod L[i-1]+L[i-2] L[i-1] L i-1 i 1 L[i-2] L i-2 i 2 mod if i+1 in c:
    L[i]=0 i+1 in c i+1 i 1 c L[i]=0 L[i] L i 0 print(L[N-1]) print L[N-1] L N-1 N 1 M=map(int,input().split()) map(int,input().split()) M N,M=map(int,input().split()) map(int,input().split()) N mod=1000000007 1000000007 mod k=int(input()) int(input()) k L=[0]*N [0]*N L c={} {} c
N,M=map(int,input().split())
L=[0]*N
c={}
mod=1000000007
for i in range(M):
  k=int(input())
  c[k]=0
for i in range(N):
  if i==0:
    L[i]=1
  elif i==1:
    if L[0]==0:
      L[i]=1
    else:
      L[i]=2
  else:
    L[i]=(L[i-1]+L[i-2])%mod
  if i+1 in c:
    L[i]=0
print(L[N-1])