p = 10**9+7
N,M = map(int,input().split())
A = {i:0 for i in range(N+1)}
for _ in range(M):
    A[int(input())] = 1
dp = [0 for _ in range(N+1)]
dp[N] = 1
for i in range(N-1,-1,-1):
    if A[i]==1:continue
    if A[i+1]==0:
        dp[i] = dp[i+1]
    if i+2<=N and A[i+2]==0:
        dp[i] = (dp[i]+dp[i+2])%p
print(dp[0]) p = 10**9+7 p 10**9+7 10**9 10 9 7 N,M = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split M i:0 for i in range(N+1) for i in range(N+1) i range(N+1) range N+1 N 1 for i in range(N+1) i 0 A = {i:0 for i in range(N+1)} A {i:0 for i in range(N+1)} for _ in range(M):
    A[int(input())] = 1 _ range(M) range M A[int(input())] = 1 A[int(input())] A int(input()) int input() input 1 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 dp = [0 for _ in range(N+1)] dp [0 for _ in range(N+1)] dp[N] = 1 dp[N] dp N 1 for i in range(N-1,-1,-1):
    if A[i]==1:continue
    if A[i+1]==0:
        dp[i] = dp[i+1]
    if i+2<=N and A[i+2]==0:
        dp[i] = (dp[i]+dp[i+2])%p i range(N-1,-1,-1) range N-1 N 1 -1 -1 if A[i]==1:continue
     A[i]==1 A[i] A i 1 if A[i+1]==0:
        dp[i] = dp[i+1]
     A[i+1]==0 A[i+1] A i+1 i 1 0 dp[i] = dp[i+1] dp[i] dp i dp[i+1] dp i+1 i 1 if i+2<=N and A[i+2]==0:
        dp[i] = (dp[i]+dp[i+2])%p i+2<=N and A[i+2]==0 i+2<=N i+2 i 2 N A[i+2]==0 A[i+2] A i+2 i 2 0 dp[i] = (dp[i]+dp[i+2])%p dp[i] dp i (dp[i]+dp[i+2])%p dp[i]+dp[i+2] dp[i] dp i dp[i+2] dp i+2 i 2 p print(dp[0]) print dp[0] dp 0 M = map(int,input().split()) map(int,input().split()) M A = {i:0 for i in range(N+1)} {i:0 for i in range(N+1)} A p = 10**9+7 10**9+7 p dp = [0 for _ in range(N+1)] [0 for _ in range(N+1)] dp N,M = map(int,input().split()) map(int,input().split()) N
p = 10**9+7
N,M = map(int,input().split())
A = {i:0 for i in range(N+1)}
for _ in range(M):
    A[int(input())] = 1
dp = [0 for _ in range(N+1)]
dp[N] = 1
for i in range(N-1,-1,-1):
    if A[i]==1:continue
    if A[i+1]==0:
        dp[i] = dp[i+1]
    if i+2<=N and A[i+2]==0:
        dp[i] = (dp[i]+dp[i+2])%p
print(dp[0])