n, m = map(int, input().split())
ans = [1] + [1]*n

if n == 1:
  print(1)
  exit()

for i in range(m):
    ans[int(input())] = 0
for i in range(n-2, -1, -1):
    if ans[i]==0:
        continue
    ans[i] = (ans[i+1]+ans[i+2])%(10**9 + 7)

print(ans[0]) n, m = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split m ans = [1] + [1]*n ans [1] + [1]*n [1] 1 [1]*n [1] 1 n if n == 1:
  print(1)
  exit() n == 1 n 1 print(1) print 1 exit() exit for i in range(m):
    ans[int(input())] = 0 i range(m) range m ans[int(input())] = 0 ans[int(input())] ans int(input()) int input() input 0 for i in range(n-2, -1, -1):
    if ans[i]==0:
        continue
    ans[i] = (ans[i+1]+ans[i+2])%(10**9 + 7) i range(n-2, -1, -1) range n-2 n 2 -1 -1 if ans[i]==0:
        continue
     ans[i]==0 ans[i] ans i 0 continue ans[i] = (ans[i+1]+ans[i+2])%(10**9 + 7) ans[i] ans i (ans[i+1]+ans[i+2])%(10**9 + 7) ans[i+1]+ans[i+2] ans[i+1] ans i+1 i 1 ans[i+2] ans i+2 i 2 10**9 + 7 10**9 10 9 7 print(ans[0]) print ans[0] ans 0 n, m = map(int, input().split()) map(int, input().split()) n ans = [1] + [1]*n [1] + [1]*n ans m = map(int, input().split()) map(int, input().split()) m
n, m = map(int, input().split())
ans = [1] + [1]*n

if n == 1:
  print(1)
  exit()

for i in range(m):
    ans[int(input())] = 0
for i in range(n-2, -1, -1):
    if ans[i]==0:
        continue
    ans[i] = (ans[i+1]+ans[i+2])%(10**9 + 7)

print(ans[0])