N,M = map(int, input().split())
ng = set()
for i in range(M):
  ng.add(int(input()))
  
dp = [0] * (N + 5)
dp[0] = 1

for i in range(N):
  if i + 1 not in ng:
    dp[i + 1] += dp[i]
    dp[i + 1] %= 1000000007
  if i + 2 not in ng:
    dp[i + 2] += dp[i]
    dp[i + 2] %= 1000000007

print(dp[N]) N,M = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split M ng = set() ng set() set for i in range(M):
  ng.add(int(input()))
   i range(M) range M ng.add(int(input())) ng.add ng add int(input()) int input() input dp = [0] * (N + 5) dp [0] * (N + 5) [0] 0 N + 5 N 5 dp[0] = 1 dp[0] dp 0 1 for i in range(N):
  if i + 1 not in ng:
    dp[i + 1] += dp[i]
    dp[i + 1] %= 1000000007
  if i + 2 not in ng:
    dp[i + 2] += dp[i]
    dp[i + 2] %= 1000000007 i range(N) range N if i + 1 not in ng:
    dp[i + 1] += dp[i]
    dp[i + 1] %= 1000000007
   i + 1 not in ng i + 1 i 1 ng dp[i + 1] += dp[i] dp[i + 1] dp i + 1 i 1 dp[i] dp i dp[i + 1] %= 1000000007 dp[i + 1] dp i + 1 i 1 1000000007 if i + 2 not in ng:
    dp[i + 2] += dp[i]
    dp[i + 2] %= 1000000007 i + 2 not in ng i + 2 i 2 ng dp[i + 2] += dp[i] dp[i + 2] dp i + 2 i 2 dp[i] dp i dp[i + 2] %= 1000000007 dp[i + 2] dp i + 2 i 2 1000000007 print(dp[N]) print dp[N] dp N M = map(int, input().split()) map(int, input().split()) M N,M = map(int, input().split()) map(int, input().split()) N dp = [0] * (N + 5) [0] * (N + 5) dp ng = set() set() ng
N,M = map(int, input().split())
ng = set()
for i in range(M):
  ng.add(int(input()))
  
dp = [0] * (N + 5)
dp[0] = 1

for i in range(N):
  if i + 1 not in ng:
    dp[i + 1] += dp[i]
    dp[i + 1] %= 1000000007
  if i + 2 not in ng:
    dp[i + 2] += dp[i]
    dp[i + 2] %= 1000000007

print(dp[N])