n,m = map(int ,input().split())
a = set([int(input()) for _ in range(m)])

mod = 10**9+7
ans = [0]*(n+1)
ans [0] = 1
if 1 not in a: ans[1] = 1

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

mod = 10**9+7
ans = [0]*(n+1)
ans [0] = 1
if 1 not in a: ans[1] = 1

for i in range(2,n+1):
  if i in a: continue
  ans[i] = ans[i-1] + ans[i-2]
print(ans[-1]%mod)