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