n,m = map(int,input().split())
a = set([int(input()) for _ in range(m)])
mod = 10**9+7
fl = [0]*(n+1)
fl[0] = 1

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

for i in range(1,n+1):
    if i not in a:
        fl[i] = (fl[i-1] + fl[i-2])%mod
    else:
        fl[i] = 0
print(fl[-1])