MOD = 10**9 + 7
N, M = map(int, input().split())
dp = [0]*(N+1)
for _ in range(M):
  dp[int(input())] = -1
dp[0] = 1

for i in range(N+1):
  if dp[i] == -1:
    continue
  if i+1 <= N and dp[i+1] != -1:
    dp[i+1] = (dp[i+1] + dp[i]) % MOD
  if i+2 <= N and dp[i+2] != -1:
    dp[i+2] = (dp[i+2] + dp[i]) % MOD
print(dp[N]) MOD = 10**9 + 7 MOD 10**9 + 7 10**9 10 9 7 N, M = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split M dp = [0]*(N+1) dp [0]*(N+1) [0] 0 N+1 N 1 for _ in range(M):
  dp[int(input())] = -1 _ range(M) range M dp[int(input())] = -1 dp[int(input())] dp int(input()) int input() input -1 dp[0] = 1 dp[0] dp 0 1 for i in range(N+1):
  if dp[i] == -1:
    continue
  if i+1 <= N and dp[i+1] != -1:
    dp[i+1] = (dp[i+1] + dp[i]) % MOD
  if i+2 <= N and dp[i+2] != -1:
    dp[i+2] = (dp[i+2] + dp[i]) % MOD i range(N+1) range N+1 N 1 if dp[i] == -1:
    continue
   dp[i] == -1 dp[i] dp i -1 continue if i+1 <= N and dp[i+1] != -1:
    dp[i+1] = (dp[i+1] + dp[i]) % MOD
   i+1 <= N and dp[i+1] != -1 i+1 <= N i+1 i 1 N dp[i+1] != -1 dp[i+1] dp i+1 i 1 -1 dp[i+1] = (dp[i+1] + dp[i]) % MOD dp[i+1] dp i+1 i 1 (dp[i+1] + dp[i]) % MOD dp[i+1] + dp[i] dp[i+1] dp i+1 i 1 dp[i] dp i MOD if i+2 <= N and dp[i+2] != -1:
    dp[i+2] = (dp[i+2] + dp[i]) % MOD i+2 <= N and dp[i+2] != -1 i+2 <= N i+2 i 2 N dp[i+2] != -1 dp[i+2] dp i+2 i 2 -1 dp[i+2] = (dp[i+2] + dp[i]) % MOD dp[i+2] dp i+2 i 2 (dp[i+2] + dp[i]) % MOD dp[i+2] + dp[i] dp[i+2] dp i+2 i 2 dp[i] dp i MOD 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+1) [0]*(N+1) dp MOD = 10**9 + 7 10**9 + 7 MOD
MOD = 10**9 + 7
N, M = map(int, input().split())
dp = [0]*(N+1)
for _ in range(M):
  dp[int(input())] = -1
dp[0] = 1

for i in range(N+1):
  if dp[i] == -1:
    continue
  if i+1 <= N and dp[i+1] != -1:
    dp[i+1] = (dp[i+1] + dp[i]) % MOD
  if i+2 <= N and dp[i+2] != -1:
    dp[i+2] = (dp[i+2] + dp[i]) % MOD
print(dp[N])