n, m = map(int, input().split())
a = [int(input()) for i in range(m)]
a = set(a)
d = [1] + [1]*n
for i in range(1, n):
  if i in a:
    d[i] = 0
    d[i+1] = d[i-1]
  else:
    d[i+1] = d[i] + d[i-1]
    
print(d[n]%1000000007) n, m = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split m int(input()) for i in range(m) for i in range(m) i range(m) range m for i in range(m) int(input()) int input() input a = [int(input()) for i in range(m)] a [int(input()) for i in range(m)] a = set(a) a set(a) set a d = [1] + [1]*n d [1] + [1]*n [1] 1 [1]*n [1] 1 n for i in range(1, n):
  if i in a:
    d[i] = 0
    d[i+1] = d[i-1]
  else:
    d[i+1] = d[i] + d[i-1]
     i range(1, n) range 1 n if i in a:
    d[i] = 0
    d[i+1] = d[i-1]
  else:
    d[i+1] = d[i] + d[i-1]
     i in a i a d[i] = 0 d[i] d i 0 d[i+1] = d[i-1] d[i+1] d i+1 i 1 d[i-1] d i-1 i 1 d[i+1] = d[i] + d[i-1] d[i+1] d i+1 i 1 d[i] + d[i-1] d[i] d i d[i-1] d i-1 i 1 print(d[n]%1000000007) print d[n]%1000000007 d[n] d n 1000000007 a = set(a) set(a) a m = map(int, input().split()) map(int, input().split()) m a = [int(input()) for i in range(m)] [int(input()) for i in range(m)] a d = [1] + [1]*n [1] + [1]*n d n, m = map(int, input().split()) map(int, input().split()) n
n, m = map(int, input().split())
a = [int(input()) for i in range(m)]
a = set(a)
d = [1] + [1]*n
for i in range(1, n):
  if i in a:
    d[i] = 0
    d[i+1] = d[i-1]
  else:
    d[i+1] = d[i] + d[i-1]
    
print(d[n]%1000000007)