MOD = 10**9 + 7
N, M = map(int,input().split())
a = [int(input()) for k in range(M)]
dp = [0]*(N+2)
dp[0] = 1
for e in a:
    dp[e] = -1
for k in range(N):
    if dp[k] != -1:
        if dp[k+1] != -1:
            dp[k+1] += dp[k]
            dp[k+1] %= MOD
        if dp[k+2] != -1:
            dp[k+2] += dp[k]
            dp[k+2] %= MOD
print(max(0,dp[N])) MOD = 10**9 + 7 MOD 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 int(input()) for k in range(M) for k in range(M) k range(M) range M for k in range(M) int(input()) int input() input a = [int(input()) for k in range(M)] a [int(input()) for k in range(M)] dp = [0]*(N+2) dp [0]*(N+2) [0] 0 N+2 N 2 dp[0] = 1 dp[0] dp 0 1 for e in a:
    dp[e] = -1 e a dp[e] = -1 dp[e] dp e -1 for k in range(N):
    if dp[k] != -1:
        if dp[k+1] != -1:
            dp[k+1] += dp[k]
            dp[k+1] %= MOD
        if dp[k+2] != -1:
            dp[k+2] += dp[k]
            dp[k+2] %= MOD k range(N) range N if dp[k] != -1:
        if dp[k+1] != -1:
            dp[k+1] += dp[k]
            dp[k+1] %= MOD
        if dp[k+2] != -1:
            dp[k+2] += dp[k]
            dp[k+2] %= MOD dp[k] != -1 dp[k] dp k -1 if dp[k+1] != -1:
            dp[k+1] += dp[k]
            dp[k+1] %= MOD
         dp[k+1] != -1 dp[k+1] dp k+1 k 1 -1 dp[k+1] += dp[k] dp[k+1] dp k+1 k 1 dp[k] dp k dp[k+1] %= MOD dp[k+1] dp k+1 k 1 MOD if dp[k+2] != -1:
            dp[k+2] += dp[k]
            dp[k+2] %= MOD dp[k+2] != -1 dp[k+2] dp k+2 k 2 -1 dp[k+2] += dp[k] dp[k+2] dp k+2 k 2 dp[k] dp k dp[k+2] %= MOD dp[k+2] dp k+2 k 2 MOD print(max(0,dp[N])) print max(0,dp[N]) max 0 dp[N] dp N MOD = 10**9 + 7 10**9 + 7 MOD M = map(int,input().split()) map(int,input().split()) M dp = [0]*(N+2) [0]*(N+2) dp a = [int(input()) for k in range(M)] [int(input()) for k in range(M)] a N, M = map(int,input().split()) map(int,input().split()) N
MOD = 10**9 + 7
N, M = map(int,input().split())
a = [int(input()) for k in range(M)]
dp = [0]*(N+2)
dp[0] = 1
for e in a:
    dp[e] = -1
for k in range(N):
    if dp[k] != -1:
        if dp[k+1] != -1:
            dp[k+1] += dp[k]
            dp[k+1] %= MOD
        if dp[k+2] != -1:
            dp[k+2] += dp[k]
            dp[k+2] %= MOD
print(max(0,dp[N]))
