N,M = map(int,input().split())
a = [0]*(N+2)
pass_list = [0]*(N+2)

for i in range(M):
    b = int(input())
    a[b] = 1
if(a[1] !=1):
    pass_list[1]=1
if(a[2] !=1):
    pass_list[2]=1
for i in range(2,N+1):
    if(a[i] != 1):
        pass_list[i] += pass_list[i-1]+pass_list[i-2]
print(pass_list[N]%1000000007) N,M = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split M a = [0]*(N+2) a [0]*(N+2) [0] 0 N+2 N 2 pass_list = [0]*(N+2) pass_list [0]*(N+2) [0] 0 N+2 N 2 for i in range(M):
    b = int(input())
    a[b] = 1 i range(M) range M b = int(input()) b int(input()) int input() input a[b] = 1 a[b] a b 1 if(a[1] !=1):
    pass_list[1]=1 a[1] !=1 a[1] a 1 1 pass_list[1]=1 pass_list[1] pass_list 1 1 if(a[2] !=1):
    pass_list[2]=1 a[2] !=1 a[2] a 2 1 pass_list[2]=1 pass_list[2] pass_list 2 1 for i in range(2,N+1):
    if(a[i] != 1):
        pass_list[i] += pass_list[i-1]+pass_list[i-2] i range(2,N+1) range 2 N+1 N 1 if(a[i] != 1):
        pass_list[i] += pass_list[i-1]+pass_list[i-2] a[i] != 1 a[i] a i 1 pass_list[i] += pass_list[i-1]+pass_list[i-2] pass_list[i] pass_list i pass_list[i-1]+pass_list[i-2] pass_list[i-1] pass_list i-1 i 1 pass_list[i-2] pass_list i-2 i 2 print(pass_list[N]%1000000007) print pass_list[N]%1000000007 pass_list[N] pass_list N 1000000007 N,M = map(int,input().split()) map(int,input().split()) N pass_list = [0]*(N+2) [0]*(N+2) pass_list a = [0]*(N+2) [0]*(N+2) a b = int(input()) int(input()) b M = map(int,input().split()) map(int,input().split()) M
N,M = map(int,input().split())
a = [0]*(N+2)
pass_list = [0]*(N+2)

for i in range(M):
    b = int(input())
    a[b] = 1
if(a[1] !=1):
    pass_list[1]=1
if(a[2] !=1):
    pass_list[2]=1
for i in range(2,N+1):
    if(a[i] != 1):
        pass_list[i] += pass_list[i-1]+pass_list[i-2]
print(pass_list[N]%1000000007)
