n,m = map(int,input().split())
a = [int(input()) for _ in range(m)]

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

broken = [0]*(n+1)
for i in a:
    broken[i]= -1

for i in range(1,n):
    if broken[i] == -1:
        ans[i] = 0
        ans[i+1] = ans[i-1]%p
    else:
        ans[i+1] = (ans[i-1] + ans[i])%p

print(ans[-1]) n,m = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split m int(input()) for _ in range(m) for _ in range(m) _ range(m) range m for _ in range(m) int(input()) int input() input a = [int(input()) for _ in range(m)] a [int(input()) for _ in range(m)] p = 10**9 +7 p 10**9 +7 10**9 10 9 7 ans = [0]*(n+1) ans [0]*(n+1) [0] 0 n+1 n 1 ans[0] = 1 ans[0] ans 0 1 ans[1] = 1 ans[1] ans 1 1 broken = [0]*(n+1) broken [0]*(n+1) [0] 0 n+1 n 1 for i in a:
    broken[i]= -1 i a broken[i]= -1 broken[i] broken i -1 for i in range(1,n):
    if broken[i] == -1:
        ans[i] = 0
        ans[i+1] = ans[i-1]%p
    else:
        ans[i+1] = (ans[i-1] + ans[i])%p i range(1,n) range 1 n if broken[i] == -1:
        ans[i] = 0
        ans[i+1] = ans[i-1]%p
    else:
        ans[i+1] = (ans[i-1] + ans[i])%p broken[i] == -1 broken[i] broken i -1 ans[i] = 0 ans[i] ans i 0 ans[i+1] = ans[i-1]%p ans[i+1] ans i+1 i 1 ans[i-1]%p ans[i-1] ans i-1 i 1 p ans[i+1] = (ans[i-1] + ans[i])%p ans[i+1] ans i+1 i 1 (ans[i-1] + ans[i])%p ans[i-1] + ans[i] ans[i-1] ans i-1 i 1 ans[i] ans i p print(ans[-1]) print ans[-1] ans -1 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 a = [int(input()) for _ in range(m)] [int(input()) for _ in range(m)] a broken = [0]*(n+1) [0]*(n+1) broken ans = [0]*(n+1) [0]*(n+1) ans
n,m = map(int,input().split())
a = [int(input()) for _ in range(m)]

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

broken = [0]*(n+1)
for i in a:
    broken[i]= -1

for i in range(1,n):
    if broken[i] == -1:
        ans[i] = 0
        ans[i+1] = ans[i-1]%p
    else:
        ans[i+1] = (ans[i-1] + ans[i])%p

print(ans[-1])