n, m = list(map(int, input().split()))
a = []
for i in range(m):
    a.append(int(input()))

mod = 1000000007

memo = [-1]*(n+1)
memo[0] = 0

for k in range(m):
    memo[a[k]] = 0

for i in range(1, n+1):
    if memo[i] != -1:
        pass 
    elif i <= 2:
        memo[i] = memo[i-1] + 1
    else:
        memo[i] = memo[i-1] + memo[i-2]
print(memo[-1]%mod) n, m = list(map(int, input().split())) n list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split m a = [] a [] for i in range(m):
    a.append(int(input())) i range(m) range m a.append(int(input())) a.append a append int(input()) int input() input mod = 1000000007 mod 1000000007 memo = [-1]*(n+1) memo [-1]*(n+1) [-1] -1 n+1 n 1 memo[0] = 0 memo[0] memo 0 0 for k in range(m):
    memo[a[k]] = 0 k range(m) range m memo[a[k]] = 0 memo[a[k]] memo a[k] a k 0 for i in range(1, n+1):
    if memo[i] != -1:
        pass 
    elif i <= 2:
        memo[i] = memo[i-1] + 1
    else:
        memo[i] = memo[i-1] + memo[i-2] i range(1, n+1) range 1 n+1 n 1 if memo[i] != -1:
        pass 
    elif i <= 2:
        memo[i] = memo[i-1] + 1
    else:
        memo[i] = memo[i-1] + memo[i-2] memo[i] != -1 memo[i] memo i -1 elif i <= 2:
        memo[i] = memo[i-1] + 1
     i <= 2 i 2 memo[i] = memo[i-1] + 1 memo[i] memo i memo[i-1] + 1 memo[i-1] memo i-1 i 1 1 memo[i] = memo[i-1] + memo[i-2] memo[i] memo i memo[i-1] + memo[i-2] memo[i-1] memo i-1 i 1 memo[i-2] memo i-2 i 2 print(memo[-1]%mod) print memo[-1]%mod memo[-1] memo -1 mod a = [] [] a m = list(map(int, input().split())) list(map(int, input().split())) m mod = 1000000007 1000000007 mod n, m = list(map(int, input().split())) list(map(int, input().split())) n memo = [-1]*(n+1) [-1]*(n+1) memo
n, m = list(map(int, input().split()))
a = []
for i in range(m):
    a.append(int(input()))

mod = 1000000007

memo = [-1]*(n+1)
memo[0] = 0

for k in range(m):
    memo[a[k]] = 0

for i in range(1, n+1):
    if memo[i] != -1:
        pass 
    elif i <= 2:
        memo[i] = memo[i-1] + 1
    else:
        memo[i] = memo[i-1] + memo[i-2]
print(memo[-1]%mod)