MOD=1000000007
N,M=map(int,input().split())
cnt=[0 for _ in range(N+1)]
cnt[0]=1
for _ in range(M):
    a=int(input())
    cnt[a]=-1
for i in range(1,N+1):
    if cnt[i]==-1:
        cnt[i]=0
        continue
    if i==1:
        cnt[i]=cnt[i-1]
    else:
        cnt[i]=(cnt[i-1]+cnt[i-2])%MOD
print(cnt[N]) MOD=1000000007 MOD 1000000007 N,M=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split M 0 for _ in range(N+1) for _ in range(N+1) _ range(N+1) range N+1 N 1 for _ in range(N+1) 0 cnt=[0 for _ in range(N+1)] cnt [0 for _ in range(N+1)] cnt[0]=1 cnt[0] cnt 0 1 for _ in range(M):
    a=int(input())
    cnt[a]=-1 _ range(M) range M a=int(input()) a int(input()) int input() input cnt[a]=-1 cnt[a] cnt a -1 for i in range(1,N+1):
    if cnt[i]==-1:
        cnt[i]=0
        continue
    if i==1:
        cnt[i]=cnt[i-1]
    else:
        cnt[i]=(cnt[i-1]+cnt[i-2])%MOD i range(1,N+1) range 1 N+1 N 1 if cnt[i]==-1:
        cnt[i]=0
        continue
     cnt[i]==-1 cnt[i] cnt i -1 cnt[i]=0 cnt[i] cnt i 0 continue if i==1:
        cnt[i]=cnt[i-1]
    else:
        cnt[i]=(cnt[i-1]+cnt[i-2])%MOD i==1 i 1 cnt[i]=cnt[i-1] cnt[i] cnt i cnt[i-1] cnt i-1 i 1 cnt[i]=(cnt[i-1]+cnt[i-2])%MOD cnt[i] cnt i (cnt[i-1]+cnt[i-2])%MOD cnt[i-1]+cnt[i-2] cnt[i-1] cnt i-1 i 1 cnt[i-2] cnt i-2 i 2 MOD print(cnt[N]) print cnt[N] cnt N M=map(int,input().split()) map(int,input().split()) M MOD=1000000007 1000000007 MOD N,M=map(int,input().split()) map(int,input().split()) N a=int(input()) int(input()) a cnt=[0 for _ in range(N+1)] [0 for _ in range(N+1)] cnt
MOD=1000000007
N,M=map(int,input().split())
cnt=[0 for _ in range(N+1)]
cnt[0]=1
for _ in range(M):
    a=int(input())
    cnt[a]=-1
for i in range(1,N+1):
    if cnt[i]==-1:
        cnt[i]=0
        continue
    if i==1:
        cnt[i]=cnt[i-1]
    else:
        cnt[i]=(cnt[i-1]+cnt[i-2])%MOD
print(cnt[N])
