n, m = map(int, input().split())
a_l = [ int(input()) for _ in range(m) ]

dp = [1] * (n+1)
dp[0] = 1
if 1 not in a_l:
    dp[1] = 1
else:
    dp[1] = 0
if n > 1:
    for i in a_l:
        dp[i] = 0
    if 2 not in a_l:
        dp[2] = dp[0] + dp[1]
    else:
        dp[2] = 0
    for i in range(2,n+1):
        if dp[i] != 0:
            dp[i] = (dp[i-1] + dp[i-2])%1000000007
print(dp[-1]) 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_l = [ int(input()) for _ in range(m) ] a_l [ int(input()) for _ in range(m) ] dp = [1] * (n+1) dp [1] * (n+1) [1] 1 n+1 n 1 dp[0] = 1 dp[0] dp 0 1 if 1 not in a_l:
    dp[1] = 1
else:
    dp[1] = 0 1 not in a_l 1 a_l dp[1] = 1 dp[1] dp 1 1 dp[1] = 0 dp[1] dp 1 0 if n > 1:
    for i in a_l:
        dp[i] = 0
    if 2 not in a_l:
        dp[2] = dp[0] + dp[1]
    else:
        dp[2] = 0
    for i in range(2,n+1):
        if dp[i] != 0:
            dp[i] = (dp[i-1] + dp[i-2])%1000000007 n > 1 n 1 for i in a_l:
        dp[i] = 0
     i a_l dp[i] = 0 dp[i] dp i 0 if 2 not in a_l:
        dp[2] = dp[0] + dp[1]
    else:
        dp[2] = 0
     2 not in a_l 2 a_l dp[2] = dp[0] + dp[1] dp[2] dp 2 dp[0] + dp[1] dp[0] dp 0 dp[1] dp 1 dp[2] = 0 dp[2] dp 2 0 for i in range(2,n+1):
        if dp[i] != 0:
            dp[i] = (dp[i-1] + dp[i-2])%1000000007 i range(2,n+1) range 2 n+1 n 1 if dp[i] != 0:
            dp[i] = (dp[i-1] + dp[i-2])%1000000007 dp[i] != 0 dp[i] dp i 0 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[-1]) print dp[-1] dp -1 n, m = map(int, input().split()) map(int, input().split()) n m = map(int, input().split()) map(int, input().split()) m a_l = [ int(input()) for _ in range(m) ] [ int(input()) for _ in range(m) ] a_l dp = [1] * (n+1) [1] * (n+1) dp
n, m = map(int, input().split())
a_l = [ int(input()) for _ in range(m) ]

dp = [1] * (n+1)
dp[0] = 1
if 1 not in a_l:
    dp[1] = 1
else:
    dp[1] = 0
if n > 1:
    for i in a_l:
        dp[i] = 0
    if 2 not in a_l:
        dp[2] = dp[0] + dp[1]
    else:
        dp[2] = 0
    for i in range(2,n+1):
        if dp[i] != 0:
            dp[i] = (dp[i-1] + dp[i-2])%1000000007
print(dp[-1])