n, m = map(int, input().split())
 
forbidden = []
for i in range(m):
  forbidden.append(int(input()))
forbidden = set(forbidden) 
ans = [0]*(n+1)
ans[0] = 1
if 1 not in forbidden:
  ans[1] = 1
for i in range(2,n+1):
  if i not in forbidden:
    ans[i] += ans[i - 1] + ans[i - 2]
    ans[i] %= 1000000007
print(ans[-1]) n, m = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split m forbidden = [] forbidden [] for i in range(m):
  forbidden.append(int(input())) i range(m) range m forbidden.append(int(input())) forbidden.append forbidden append int(input()) int input() input forbidden = set(forbidden) forbidden set(forbidden) set forbidden ans = [0]*(n+1) ans [0]*(n+1) [0] 0 n+1 n 1 ans[0] = 1 ans[0] ans 0 1 if 1 not in forbidden:
  ans[1] = 1 1 not in forbidden 1 forbidden ans[1] = 1 ans[1] ans 1 1 for i in range(2,n+1):
  if i not in forbidden:
    ans[i] += ans[i - 1] + ans[i - 2]
    ans[i] %= 1000000007 i range(2,n+1) range 2 n+1 n 1 if i not in forbidden:
    ans[i] += ans[i - 1] + ans[i - 2]
    ans[i] %= 1000000007 i not in forbidden i forbidden ans[i] += ans[i - 1] + ans[i - 2] ans[i] ans i ans[i - 1] + ans[i - 2] ans[i - 1] ans i - 1 i 1 ans[i - 2] ans i - 2 i 2 ans[i] %= 1000000007 ans[i] ans i 1000000007 print(ans[-1]) print ans[-1] ans -1 forbidden = [] [] forbidden forbidden = set(forbidden) set(forbidden) forbidden ans = [0]*(n+1) [0]*(n+1) ans n, m = map(int, input().split()) map(int, input().split()) n m = map(int, input().split()) map(int, input().split()) m
n, m = map(int, input().split())
 
forbidden = []
for i in range(m):
  forbidden.append(int(input()))
forbidden = set(forbidden) 
ans = [0]*(n+1)
ans[0] = 1
if 1 not in forbidden:
  ans[1] = 1
for i in range(2,n+1):
  if i not in forbidden:
    ans[i] += ans[i - 1] + ans[i - 2]
    ans[i] %= 1000000007
print(ans[-1])