n, m = map(int, input().split())
a = set(list(int(input()) for i in  range(m)))

p = 10**9+7
dp = [0]*(n+1)
dp[0] = 1

for i in range(1, n+1):
    dp[i] = (dp[i-1] + dp[i-2])%p
    if i in a:
        dp[i] = 0
print(dp[n])
 n, m = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split m a = set(list(int(input()) for i in  range(m))) a set(list(int(input()) for i in  range(m))) set list(int(input()) for i in  range(m)) list int(input()) int input() input p = 10**9+7 p 10**9+7 10**9 10 9 7 dp = [0]*(n+1) dp [0]*(n+1) [0] 0 n+1 n 1 dp[0] = 1 dp[0] dp 0 1 for i in range(1, n+1):
    dp[i] = (dp[i-1] + dp[i-2])%p
    if i in a:
        dp[i] = 0 i range(1, n+1) range 1 n+1 n 1 dp[i] = (dp[i-1] + dp[i-2])%p dp[i] dp i (dp[i-1] + dp[i-2])%p dp[i-1] + dp[i-2] dp[i-1] dp i-1 i 1 dp[i-2] dp i-2 i 2 p if i in a:
        dp[i] = 0 i in a i a dp[i] = 0 dp[i] dp i 0 print(dp[n]) print dp[n] dp n a = set(list(int(input()) for i in  range(m))) set(list(int(input()) for i in  range(m))) a dp = [0]*(n+1) [0]*(n+1) dp p = 10**9+7 10**9+7 p m = map(int, input().split()) map(int, input().split()) m n, m = map(int, input().split()) map(int, input().split()) n
n, m = map(int, input().split())
a = set(list(int(input()) for i in  range(m)))

p = 10**9+7
dp = [0]*(n+1)
dp[0] = 1

for i in range(1, n+1):
    dp[i] = (dp[i-1] + dp[i-2])%p
    if i in a:
        dp[i] = 0
print(dp[n])

