N,M = map(int,input().split())
lsS = [1,1]+[0]*(N-1)
for i in range(M):
    lsS[int(input())] = -1
for i in range(2,N+1):
    if lsS[i] == -1:
        continue
    else:
        if lsS[i-2] != -1:
            lsS[i] += lsS[i-2]
        if lsS[i-1] != -1:
            lsS[i] += lsS[i-1]
        lsS[i] = lsS[i]%(10**9+7)
print(lsS[N]) N,M = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split M lsS = [1,1]+[0]*(N-1) lsS [1,1]+[0]*(N-1) [1,1] 1 1 [0]*(N-1) [0] 0 N-1 N 1 for i in range(M):
    lsS[int(input())] = -1 i range(M) range M lsS[int(input())] = -1 lsS[int(input())] lsS int(input()) int input() input -1 for i in range(2,N+1):
    if lsS[i] == -1:
        continue
    else:
        if lsS[i-2] != -1:
            lsS[i] += lsS[i-2]
        if lsS[i-1] != -1:
            lsS[i] += lsS[i-1]
        lsS[i] = lsS[i]%(10**9+7) i range(2,N+1) range 2 N+1 N 1 if lsS[i] == -1:
        continue
    else:
        if lsS[i-2] != -1:
            lsS[i] += lsS[i-2]
        if lsS[i-1] != -1:
            lsS[i] += lsS[i-1]
        lsS[i] = lsS[i]%(10**9+7) lsS[i] == -1 lsS[i] lsS i -1 continue if lsS[i-2] != -1:
            lsS[i] += lsS[i-2]
         lsS[i-2] != -1 lsS[i-2] lsS i-2 i 2 -1 lsS[i] += lsS[i-2] lsS[i] lsS i lsS[i-2] lsS i-2 i 2 if lsS[i-1] != -1:
            lsS[i] += lsS[i-1]
         lsS[i-1] != -1 lsS[i-1] lsS i-1 i 1 -1 lsS[i] += lsS[i-1] lsS[i] lsS i lsS[i-1] lsS i-1 i 1 lsS[i] = lsS[i]%(10**9+7) lsS[i] lsS i lsS[i]%(10**9+7) lsS[i] lsS i 10**9+7 10**9 10 9 7 print(lsS[N]) print lsS[N] lsS N M = map(int,input().split()) map(int,input().split()) M N,M = map(int,input().split()) map(int,input().split()) N lsS = [1,1]+[0]*(N-1) [1,1]+[0]*(N-1) lsS
N,M = map(int,input().split())
lsS = [1,1]+[0]*(N-1)
for i in range(M):
    lsS[int(input())] = -1
for i in range(2,N+1):
    if lsS[i] == -1:
        continue
    else:
        if lsS[i-2] != -1:
            lsS[i] += lsS[i-2]
        if lsS[i-1] != -1:
            lsS[i] += lsS[i-1]
        lsS[i] = lsS[i]%(10**9+7)
print(lsS[N])