n,m = map(int,input().split())
dp = [0]*(n+1)
dp[0],dp[1] = 1,1

for _ in range(m):
  a = int(input())
  dp[a] = -1

for i in range(0,n-1):
  if dp[i+2]==-1:
    continue
  if dp[i]==-1 and dp[i+1]==-1:
    dp[i+2] = -1
  elif dp[i]==-1:
    dp[i+2] = dp[i+1]
  elif dp[i+1]==-1:
    dp[i+2] = dp[i]
  else:
    dp[i+2] = dp[i] + dp[i+1]

print(dp[n]%(10**9+7) if dp[n]!=-1 else 0) n,m = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split m dp = [0]*(n+1) dp [0]*(n+1) [0] 0 n+1 n 1 dp[0],dp[1] = 1,1 dp[0] dp 0 1 dp[1] dp 1 1 for _ in range(m):
  a = int(input())
  dp[a] = -1 _ range(m) range m a = int(input()) a int(input()) int input() input dp[a] = -1 dp[a] dp a -1 for i in range(0,n-1):
  if dp[i+2]==-1:
    continue
  if dp[i]==-1 and dp[i+1]==-1:
    dp[i+2] = -1
  elif dp[i]==-1:
    dp[i+2] = dp[i+1]
  elif dp[i+1]==-1:
    dp[i+2] = dp[i]
  else:
    dp[i+2] = dp[i] + dp[i+1] i range(0,n-1) range 0 n-1 n 1 if dp[i+2]==-1:
    continue
   dp[i+2]==-1 dp[i+2] dp i+2 i 2 -1 continue if dp[i]==-1 and dp[i+1]==-1:
    dp[i+2] = -1
  elif dp[i]==-1:
    dp[i+2] = dp[i+1]
  elif dp[i+1]==-1:
    dp[i+2] = dp[i]
  else:
    dp[i+2] = dp[i] + dp[i+1] dp[i]==-1 and dp[i+1]==-1 dp[i]==-1 dp[i] dp i -1 dp[i+1]==-1 dp[i+1] dp i+1 i 1 -1 dp[i+2] = -1 dp[i+2] dp i+2 i 2 -1 elif dp[i]==-1:
    dp[i+2] = dp[i+1]
   dp[i]==-1 dp[i] dp i -1 dp[i+2] = dp[i+1] dp[i+2] dp i+2 i 2 dp[i+1] dp i+1 i 1 elif dp[i+1]==-1:
    dp[i+2] = dp[i]
   dp[i+1]==-1 dp[i+1] dp i+1 i 1 -1 dp[i+2] = dp[i] dp[i+2] dp i+2 i 2 dp[i] dp i dp[i+2] = dp[i] + dp[i+1] dp[i+2] dp i+2 i 2 dp[i] + dp[i+1] dp[i] dp i dp[i+1] dp i+1 i 1 print(dp[n]%(10**9+7) if dp[n]!=-1 else 0) print dp[n]%(10**9+7) if dp[n]!=-1 else 0 dp[n]!=-1 dp[n] dp n -1 dp[n]%(10**9+7) dp[n] dp n 10**9+7 10**9 10 9 7 0 a = int(input()) int(input()) a m = map(int,input().split()) map(int,input().split()) m dp = [0]*(n+1) [0]*(n+1) dp n,m = map(int,input().split()) map(int,input().split()) n
n,m = map(int,input().split())
dp = [0]*(n+1)
dp[0],dp[1] = 1,1

for _ in range(m):
  a = int(input())
  dp[a] = -1

for i in range(0,n-1):
  if dp[i+2]==-1:
    continue
  if dp[i]==-1 and dp[i+1]==-1:
    dp[i+2] = -1
  elif dp[i]==-1:
    dp[i+2] = dp[i+1]
  elif dp[i+1]==-1:
    dp[i+2] = dp[i]
  else:
    dp[i+2] = dp[i] + dp[i+1]

print(dp[n]%(10**9+7) if dp[n]!=-1 else 0)