N, M = map(int, input().split())
dp = [0 for _ in range(N+1)]
skip = {}

for _ in range(M):
    skip[int(input())] = 1

dp[1] = 1
if N >= 2:
    dp[2] = 2

if 1 in skip:
    dp[1] = 0
    if N >= 2:
        dp[2] = 1
if 2 in skip:
    if N >= 2:
        dp[2] = 0

for i in range(3, N+1):
    if i in skip:
        continue
    dp[i] = (dp[i-1] + 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 0 for _ in range(N+1) for _ in range(N+1) _ range(N+1) range N+1 N 1 for _ in range(N+1) 0 dp = [0 for _ in range(N+1)] dp [0 for _ in range(N+1)] skip = {} skip {} for _ in range(M):
    skip[int(input())] = 1 _ range(M) range M skip[int(input())] = 1 skip[int(input())] skip int(input()) int input() input 1 dp[1] = 1 dp[1] dp 1 1 if N >= 2:
    dp[2] = 2 N >= 2 N 2 dp[2] = 2 dp[2] dp 2 2 if 1 in skip:
    dp[1] = 0
    if N >= 2:
        dp[2] = 1 1 in skip 1 skip dp[1] = 0 dp[1] dp 1 0 if N >= 2:
        dp[2] = 1 N >= 2 N 2 dp[2] = 1 dp[2] dp 2 1 if 2 in skip:
    if N >= 2:
        dp[2] = 0 2 in skip 2 skip if N >= 2:
        dp[2] = 0 N >= 2 N 2 dp[2] = 0 dp[2] dp 2 0 for i in range(3, N+1):
    if i in skip:
        continue
    dp[i] = (dp[i-1] + dp[i-2]) % 1000000007 i range(3, N+1) range 3 N+1 N 1 if i in skip:
        continue
     i in skip i skip continue dp[i] = (dp[i-1] + dp[i-2]) % 1000000007 dp[i] dp i (dp[i-1] + dp[i-2]) % 1000000007 dp[i-1] + dp[i-2] dp[i-1] dp i-1 i 1 dp[i-2] dp i-2 i 2 1000000007 print(dp[N]) print dp[N] dp N skip = {} {} skip N, M = map(int, input().split()) map(int, input().split()) N M = map(int, input().split()) map(int, input().split()) M dp = [0 for _ in range(N+1)] [0 for _ in range(N+1)] dp
N, M = map(int, input().split())
dp = [0 for _ in range(N+1)]
skip = {}

for _ in range(M):
    skip[int(input())] = 1

dp[1] = 1
if N >= 2:
    dp[2] = 2

if 1 in skip:
    dp[1] = 0
    if N >= 2:
        dp[2] = 1
if 2 in skip:
    if N >= 2:
        dp[2] = 0

for i in range(3, N+1):
    if i in skip:
        continue
    dp[i] = (dp[i-1] + dp[i-2]) % 1000000007

print(dp[N])
