N,M = list(map(int,input().split()))
a = [int(input()) for i in range(M)]
a_complement = list((set(list(range(N+1))) ^ set(a)))
cnt = {s: 0 for s in range(-2,N+1)}
cnt[0] = 1

for i in a_complement:
  cnt[i] += cnt[i-1] + cnt[i-2]

print(cnt[N] % 1000000007) N,M = list(map(int,input().split())) N list(map(int,input().split())) list 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_complement = list((set(list(range(N+1))) ^ set(a))) a_complement list((set(list(range(N+1))) ^ set(a))) list set(list(range(N+1))) ^ set(a) set(list(range(N+1))) set list(range(N+1)) list range(N+1) range N+1 N 1 set(a) set a s: 0 for s in range(-2,N+1) for s in range(-2,N+1) s range(-2,N+1) range -2 N+1 N 1 for s in range(-2,N+1) s 0 cnt = {s: 0 for s in range(-2,N+1)} cnt {s: 0 for s in range(-2,N+1)} cnt[0] = 1 cnt[0] cnt 0 1 for i in a_complement:
  cnt[i] += cnt[i-1] + cnt[i-2] i a_complement cnt[i] += cnt[i-1] + cnt[i-2] cnt[i] cnt i cnt[i-1] + cnt[i-2] cnt[i-1] cnt i-1 i 1 cnt[i-2] cnt i-2 i 2 print(cnt[N] % 1000000007) print cnt[N] % 1000000007 cnt[N] cnt N 1000000007 a_complement = list((set(list(range(N+1))) ^ set(a))) list((set(list(range(N+1))) ^ set(a))) a_complement a = [int(input()) for i in range(M)] [int(input()) for i in range(M)] a cnt = {s: 0 for s in range(-2,N+1)} {s: 0 for s in range(-2,N+1)} cnt N,M = list(map(int,input().split())) list(map(int,input().split())) N M = list(map(int,input().split())) list(map(int,input().split())) M
N,M = list(map(int,input().split()))
a = [int(input()) for i in range(M)]
a_complement = list((set(list(range(N+1))) ^ set(a)))
cnt = {s: 0 for s in range(-2,N+1)}
cnt[0] = 1

for i in a_complement:
  cnt[i] += cnt[i-1] + cnt[i-2]

print(cnt[N] % 1000000007)