MOD=10**9+7
n,m=map(int,input().split())
a=set([int(input()) for _ in range(m)])
if 1 in a:
  ans=[1,0]
else:
  ans=[1,1]

for i in range(1,n):
  if i+1 in a:
    ans.append(0)
  else:
    s=(ans[-1]+ans[-2])%MOD
    ans.append(s)
print(ans[-1]%MOD) MOD=10**9+7 MOD 10**9+7 10**9 10 9 7 n,m=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split m int(input()) for _ in range(m) for _ in range(m) _ range(m) range m for _ in range(m) int(input()) int input() input a=set([int(input()) for _ in range(m)]) a set([int(input()) for _ in range(m)]) set [int(input()) for _ in range(m)] if 1 in a:
  ans=[1,0]
else:
  ans=[1,1] 1 in a 1 a ans=[1,0] ans [1,0] 1 0 ans=[1,1] ans [1,1] 1 1 for i in range(1,n):
  if i+1 in a:
    ans.append(0)
  else:
    s=(ans[-1]+ans[-2])%MOD
    ans.append(s) i range(1,n) range 1 n if i+1 in a:
    ans.append(0)
  else:
    s=(ans[-1]+ans[-2])%MOD
    ans.append(s) i+1 in a i+1 i 1 a ans.append(0) ans.append ans append 0 s=(ans[-1]+ans[-2])%MOD s (ans[-1]+ans[-2])%MOD ans[-1]+ans[-2] ans[-1] ans -1 ans[-2] ans -2 MOD ans.append(s) ans.append ans append s print(ans[-1]%MOD) print ans[-1]%MOD ans[-1] ans -1 MOD a=set([int(input()) for _ in range(m)]) set([int(input()) for _ in range(m)]) a s=(ans[-1]+ans[-2])%MOD (ans[-1]+ans[-2])%MOD s MOD=10**9+7 10**9+7 MOD ans=[1,1] [1,1] ans m=map(int,input().split()) map(int,input().split()) m n,m=map(int,input().split()) map(int,input().split()) n ans=[1,0] [1,0] ans
MOD=10**9+7
n,m=map(int,input().split())
a=set([int(input()) for _ in range(m)])
if 1 in a:
  ans=[1,0]
else:
  ans=[1,1]

for i in range(1,n):
  if i+1 in a:
    ans.append(0)
  else:
    s=(ans[-1]+ans[-2])%MOD
    ans.append(s)
print(ans[-1]%MOD)