n, m = map(int, input().split())
issafe = [True] * (n +1)
for _ in range(m):
    a = int(input())
    issafe[a] = False

dp = [0] * (n + 1)
dp[0] = 1
if issafe[1]:
    dp[1] = 1

for i in range(2, n + 1):
    if  issafe[i - 1]:
        dp[i] = dp[i] + dp[i - 1]
    if issafe[i -  2]:
        dp[i] = dp[i - 2] + dp[i] 
    
    dp[i] %= 1000000007
    
print(dp[n]) n, m = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split m issafe = [True] * (n +1) issafe [True] * (n +1) [True] True n +1 n 1 for _ in range(m):
    a = int(input())
    issafe[a] = False _ range(m) range m a = int(input()) a int(input()) int input() input issafe[a] = False issafe[a] issafe a False dp = [0] * (n + 1) dp [0] * (n + 1) [0] 0 n + 1 n 1 dp[0] = 1 dp[0] dp 0 1 if issafe[1]:
    dp[1] = 1 issafe[1] issafe 1 dp[1] = 1 dp[1] dp 1 1 for i in range(2, n + 1):
    if  issafe[i - 1]:
        dp[i] = dp[i] + dp[i - 1]
    if issafe[i -  2]:
        dp[i] = dp[i - 2] + dp[i] 
    
    dp[i] %= 1000000007
     i range(2, n + 1) range 2 n + 1 n 1 if  issafe[i - 1]:
        dp[i] = dp[i] + dp[i - 1]
     issafe[i - 1] issafe i - 1 i 1 dp[i] = dp[i] + dp[i - 1] dp[i] dp i dp[i] + dp[i - 1] dp[i] dp i dp[i - 1] dp i - 1 i 1 if issafe[i -  2]:
        dp[i] = dp[i - 2] + dp[i] 
    
     issafe[i -  2] issafe i -  2 i 2 dp[i] = dp[i - 2] + dp[i] dp[i] dp i dp[i - 2] + dp[i] dp[i - 2] dp i - 2 i 2 dp[i] dp i dp[i] %= 1000000007 dp[i] dp i 1000000007 print(dp[n]) print dp[n] dp n dp = [0] * (n + 1) [0] * (n + 1) dp a = int(input()) int(input()) a issafe = [True] * (n +1) [True] * (n +1) issafe n, m = map(int, input().split()) map(int, input().split()) n m = map(int, input().split()) map(int, input().split()) m
n, m = map(int, input().split())
issafe = [True] * (n +1)
for _ in range(m):
    a = int(input())
    issafe[a] = False

dp = [0] * (n + 1)
dp[0] = 1
if issafe[1]:
    dp[1] = 1

for i in range(2, n + 1):
    if  issafe[i - 1]:
        dp[i] = dp[i] + dp[i - 1]
    if issafe[i -  2]:
        dp[i] = dp[i - 2] + dp[i] 
    
    dp[i] %= 1000000007
    
print(dp[n])