n,m =map(int, input().split())
    #idxへの行き方の通りをリスト化
num_list = [0]*(n+1)
num_list[0] = 1
a_list =set([int(input()) for _ in range(m)])
if 1 not in a_list:
    num_list[1] = 1
for i in range(2,n+1):
    if i not in a_list:
        num_list[i] = num_list[i-1] + num_list[i-2]
print(num_list[n]%(10**9+7)) n,m =map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split m num_list = [0]*(n+1) num_list [0]*(n+1) [0] 0 n+1 n 1 num_list[0] = 1 num_list[0] num_list 0 1 int(input()) for _ in range(m) for _ in range(m) _ range(m) range m for _ in range(m) int(input()) int input() input a_list =set([int(input()) for _ in range(m)]) a_list set([int(input()) for _ in range(m)]) set [int(input()) for _ in range(m)] if 1 not in a_list:
    num_list[1] = 1 1 not in a_list 1 a_list num_list[1] = 1 num_list[1] num_list 1 1 for i in range(2,n+1):
    if i not in a_list:
        num_list[i] = num_list[i-1] + num_list[i-2] i range(2,n+1) range 2 n+1 n 1 if i not in a_list:
        num_list[i] = num_list[i-1] + num_list[i-2] i not in a_list i a_list num_list[i] = num_list[i-1] + num_list[i-2] num_list[i] num_list i num_list[i-1] + num_list[i-2] num_list[i-1] num_list i-1 i 1 num_list[i-2] num_list i-2 i 2 print(num_list[n]%(10**9+7)) print num_list[n]%(10**9+7) num_list[n] num_list n 10**9+7 10**9 10 9 7 n,m =map(int, input().split()) map(int, input().split()) n m =map(int, input().split()) map(int, input().split()) m num_list = [0]*(n+1) [0]*(n+1) num_list a_list =set([int(input()) for _ in range(m)]) set([int(input()) for _ in range(m)]) a_list
n,m =map(int, input().split())
    #idxへの行き方の通りをリスト化
num_list = [0]*(n+1)
num_list[0] = 1
a_list =set([int(input()) for _ in range(m)])
if 1 not in a_list:
    num_list[1] = 1
for i in range(2,n+1):
    if i not in a_list:
        num_list[i] = num_list[i-1] + num_list[i-2]
print(num_list[n]%(10**9+7))