n, m = list(map(int, input().split()))
a = set(list(int(input()) for _ in range(m)))
mod = 1000000007
 
memo = [0]*(n+1)
memo[0] = 1

for i in range(1, n+1):
    memo[i] = memo[i-1] + memo[i-2]
    if i in a:
        memo[i] = 0
print(memo[-1]%mod) n, m = list(map(int, input().split())) n list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split m a = set(list(int(input()) for _ in range(m))) a set(list(int(input()) for _ in range(m))) set list(int(input()) for _ in range(m)) list int(input()) int input() input mod = 1000000007 mod 1000000007 memo = [0]*(n+1) memo [0]*(n+1) [0] 0 n+1 n 1 memo[0] = 1 memo[0] memo 0 1 for i in range(1, n+1):
    memo[i] = memo[i-1] + memo[i-2]
    if i in a:
        memo[i] = 0 i range(1, n+1) range 1 n+1 n 1 memo[i] = memo[i-1] + memo[i-2] memo[i] memo i memo[i-1] + memo[i-2] memo[i-1] memo i-1 i 1 memo[i-2] memo i-2 i 2 if i in a:
        memo[i] = 0 i in a i a memo[i] = 0 memo[i] memo i 0 print(memo[-1]%mod) print memo[-1]%mod memo[-1] memo -1 mod m = list(map(int, input().split())) list(map(int, input().split())) m n, m = list(map(int, input().split())) list(map(int, input().split())) n a = set(list(int(input()) for _ in range(m))) set(list(int(input()) for _ in range(m))) a memo = [0]*(n+1) [0]*(n+1) memo mod = 1000000007 1000000007 mod
n, m = list(map(int, input().split()))
a = set(list(int(input()) for _ in range(m)))
mod = 1000000007
 
memo = [0]*(n+1)
memo[0] = 1

for i in range(1, n+1):
    memo[i] = memo[i-1] + memo[i-2]
    if i in a:
        memo[i] = 0
print(memo[-1]%mod)