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