n , m = map(int, input().split())
lis = [int(input()) for _ in range(m)]
mod = 10**9+7

ans =[1] + [1] + [-1] * (n-1)

for i in lis:
    ans[i] = 0


for i in range(2, n+1):
    if ans[i] != 0:
        ans[i] = (ans[i-1] + ans[i-2]) % mod

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

ans =[1] + [1] + [-1] * (n-1)

for i in lis:
    ans[i] = 0


for i in range(2, n+1):
    if ans[i] != 0:
        ans[i] = (ans[i-1] + ans[i-2]) % mod

print(ans[n])