n,m = map(int,input().split())
a = [0]*(m+2)
a[m]=n+10
a[m+1]=n+10
for i in range(m):
  a[i]= int(input())
answer=[0]*(n+1)
answer[0]=1
if(n==1):
  if(a[0]==1):
    print(0)
  else:
    print(1)
else:
  answer[0] = 1
  if(a[0]==1):
    answer[1] = 0
    a.pop(0)
  else:
    answer[1] = 1
  for i in range(2,n+1):
    if(a[0]==i or a[1]==i):
      answer[i]=0
    elif(a[0]==i-1):
      answer[i]=answer[i-2]
      a.pop(0)
    else:
      answer[i]=answer[i-1]+answer[i-2]
    answer[i] = answer[i]%1000000007
  print(answer[n]) n,m = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split m a = [0]*(m+2) a [0]*(m+2) [0] 0 m+2 m 2 a[m]=n+10 a[m] a m n+10 n 10 a[m+1]=n+10 a[m+1] a m+1 m 1 n+10 n 10 for i in range(m):
  a[i]= int(input()) i range(m) range m a[i]= int(input()) a[i] a i int(input()) int input() input answer=[0]*(n+1) answer [0]*(n+1) [0] 0 n+1 n 1 answer[0]=1 answer[0] answer 0 1 if(n==1):
  if(a[0]==1):
    print(0)
  else:
    print(1)
else:
  answer[0] = 1
  if(a[0]==1):
    answer[1] = 0
    a.pop(0)
  else:
    answer[1] = 1
  for i in range(2,n+1):
    if(a[0]==i or a[1]==i):
      answer[i]=0
    elif(a[0]==i-1):
      answer[i]=answer[i-2]
      a.pop(0)
    else:
      answer[i]=answer[i-1]+answer[i-2]
    answer[i] = answer[i]%1000000007
  print(answer[n]) n==1 n 1 if(a[0]==1):
    print(0)
  else:
    print(1) a[0]==1 a[0] a 0 1 print(0) print 0 print(1) print 1 answer[0] = 1 answer[0] answer 0 1 if(a[0]==1):
    answer[1] = 0
    a.pop(0)
  else:
    answer[1] = 1
   a[0]==1 a[0] a 0 1 answer[1] = 0 answer[1] answer 1 0 a.pop(0) a.pop a pop 0 answer[1] = 1 answer[1] answer 1 1 for i in range(2,n+1):
    if(a[0]==i or a[1]==i):
      answer[i]=0
    elif(a[0]==i-1):
      answer[i]=answer[i-2]
      a.pop(0)
    else:
      answer[i]=answer[i-1]+answer[i-2]
    answer[i] = answer[i]%1000000007
   i range(2,n+1) range 2 n+1 n 1 if(a[0]==i or a[1]==i):
      answer[i]=0
    elif(a[0]==i-1):
      answer[i]=answer[i-2]
      a.pop(0)
    else:
      answer[i]=answer[i-1]+answer[i-2]
     a[0]==i or a[1]==i a[0]==i a[0] a 0 i a[1]==i a[1] a 1 i answer[i]=0 answer[i] answer i 0 elif(a[0]==i-1):
      answer[i]=answer[i-2]
      a.pop(0)
     a[0]==i-1 a[0] a 0 i-1 i 1 answer[i]=answer[i-2] answer[i] answer i answer[i-2] answer i-2 i 2 a.pop(0) a.pop a pop 0 answer[i]=answer[i-1]+answer[i-2] answer[i] answer i answer[i-1]+answer[i-2] answer[i-1] answer i-1 i 1 answer[i-2] answer i-2 i 2 answer[i] = answer[i]%1000000007 answer[i] answer i answer[i]%1000000007 answer[i] answer i 1000000007 print(answer[n]) print answer[n] answer n n,m = map(int,input().split()) map(int,input().split()) n a = [0]*(m+2) [0]*(m+2) a answer=[0]*(n+1) [0]*(n+1) answer m = map(int,input().split()) map(int,input().split()) m
n,m = map(int,input().split())
a = [0]*(m+2)
a[m]=n+10
a[m+1]=n+10
for i in range(m):
  a[i]= int(input())
answer=[0]*(n+1)
answer[0]=1
if(n==1):
  if(a[0]==1):
    print(0)
  else:
    print(1)
else:
  answer[0] = 1
  if(a[0]==1):
    answer[1] = 0
    a.pop(0)
  else:
    answer[1] = 1
  for i in range(2,n+1):
    if(a[0]==i or a[1]==i):
      answer[i]=0
    elif(a[0]==i-1):
      answer[i]=answer[i-2]
      a.pop(0)
    else:
      answer[i]=answer[i-1]+answer[i-2]
    answer[i] = answer[i]%1000000007
  print(answer[n])