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):
  for j in range(1, 3):
    if (i + j) not in ng:
      dp[i + j] += dp[i]
      dp[i + j] %= 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):
  for j in range(1, 3):
    if (i + j) not in ng:
      dp[i + j] += dp[i]
      dp[i + j] %= 1000000007 i range(N) range N for j in range(1, 3):
    if (i + j) not in ng:
      dp[i + j] += dp[i]
      dp[i + j] %= 1000000007 j range(1, 3) range 1 3 if (i + j) not in ng:
      dp[i + j] += dp[i]
      dp[i + j] %= 1000000007 (i + j) not in ng i + j i j ng dp[i + j] += dp[i] dp[i + j] dp i + j i j dp[i] dp i dp[i + j] %= 1000000007 dp[i + j] dp i + j i j 1000000007 print(dp[N]) print dp[N] dp N N,M = map(int, input().split()) map(int, input().split()) N dp = [0] * (N + 5) [0] * (N + 5) dp M = map(int, input().split()) map(int, input().split()) M 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):
  for j in range(1, 3):
    if (i + j) not in ng:
      dp[i + j] += dp[i]
      dp[i + j] %= 1000000007

print(dp[N])