N,M = map(int, input().split())

A = set([int(input()) for _ in range(M)])

lis = [0]*(N+1)
lis[0] = 1


for i in range(1,N+1):
    lis[i] = (lis[i-1] + lis[i-2])%(10**9+7)
    if i in A:
        lis[i] = 0

print(lis[N]) N,M = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split M int(input()) for _ in range(M) for _ in range(M) _ range(M) range M for _ in range(M) int(input()) int input() input A = set([int(input()) for _ in range(M)]) A set([int(input()) for _ in range(M)]) set [int(input()) for _ in range(M)] lis = [0]*(N+1) lis [0]*(N+1) [0] 0 N+1 N 1 lis[0] = 1 lis[0] lis 0 1 for i in range(1,N+1):
    lis[i] = (lis[i-1] + lis[i-2])%(10**9+7)
    if i in A:
        lis[i] = 0 i range(1,N+1) range 1 N+1 N 1 lis[i] = (lis[i-1] + lis[i-2])%(10**9+7) lis[i] lis i (lis[i-1] + lis[i-2])%(10**9+7) lis[i-1] + lis[i-2] lis[i-1] lis i-1 i 1 lis[i-2] lis i-2 i 2 10**9+7 10**9 10 9 7 if i in A:
        lis[i] = 0 i in A i A lis[i] = 0 lis[i] lis i 0 print(lis[N]) print lis[N] lis N N,M = map(int, input().split()) map(int, input().split()) N lis = [0]*(N+1) [0]*(N+1) lis M = map(int, input().split()) map(int, input().split()) M A = set([int(input()) for _ in range(M)]) set([int(input()) for _ in range(M)]) A
N,M = map(int, input().split())

A = set([int(input()) for _ in range(M)])

lis = [0]*(N+1)
lis[0] = 1


for i in range(1,N+1):
    lis[i] = (lis[i-1] + lis[i-2])%(10**9+7)
    if i in A:
        lis[i] = 0

print(lis[N])
