n,m=map(int,input().split())
mod=10**9+7
dp=[1]*(n+1)
for _ in range(m):
  dp[int(input())]=0
dp[1]*=dp[0]
for i in range(2,n+1):
  dp[i]*=dp[i-1]+dp[i-2]
print(dp[-1]%mod) n,m=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split m mod=10**9+7 mod 10**9+7 10**9 10 9 7 dp=[1]*(n+1) dp [1]*(n+1) [1] 1 n+1 n 1 for _ in range(m):
  dp[int(input())]=0 _ range(m) range m dp[int(input())]=0 dp[int(input())] dp int(input()) int input() input 0 dp[1]*=dp[0] dp[1] dp 1 dp[0] dp 0 for i in range(2,n+1):
  dp[i]*=dp[i-1]+dp[i-2] i range(2,n+1) range 2 n+1 n 1 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[-1]%mod) print dp[-1]%mod dp[-1] dp -1 mod n,m=map(int,input().split()) map(int,input().split()) n m=map(int,input().split()) map(int,input().split()) m dp=[1]*(n+1) [1]*(n+1) dp mod=10**9+7 10**9+7 mod
n,m=map(int,input().split())
mod=10**9+7
dp=[1]*(n+1)
for _ in range(m):
  dp[int(input())]=0
dp[1]*=dp[0]
for i in range(2,n+1):
  dp[i]*=dp[i-1]+dp[i-2]
print(dp[-1]%mod)