N, M = map(int,input().split())
A_list = set([int(input()) for _ in range(M)])
Dp_list = [0] * (N+1)
Dp_list[0] = 1

if 1 in A_list:
    Dp_list[1] = 0
else:
    Dp_list[1] = 1

if N != 1:
    for i in range(2, N + 1):
        if i in A_list:
            continue

        Dp_list[i] = Dp_list[i-2] + Dp_list[i-1]
        Dp_list[i] %= 1000000007
    print(Dp_list[N])
else:
    print(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_list = set([int(input()) for _ in range(M)]) A_list set([int(input()) for _ in range(M)]) set [int(input()) for _ in range(M)] Dp_list = [0] * (N+1) Dp_list [0] * (N+1) [0] 0 N+1 N 1 Dp_list[0] = 1 Dp_list[0] Dp_list 0 1 if 1 in A_list:
    Dp_list[1] = 0
else:
    Dp_list[1] = 1 1 in A_list 1 A_list Dp_list[1] = 0 Dp_list[1] Dp_list 1 0 Dp_list[1] = 1 Dp_list[1] Dp_list 1 1 if N != 1:
    for i in range(2, N + 1):
        if i in A_list:
            continue

        Dp_list[i] = Dp_list[i-2] + Dp_list[i-1]
        Dp_list[i] %= 1000000007
    print(Dp_list[N])
else:
    print(1) N != 1 N 1 for i in range(2, N + 1):
        if i in A_list:
            continue

        Dp_list[i] = Dp_list[i-2] + Dp_list[i-1]
        Dp_list[i] %= 1000000007
     i range(2, N + 1) range 2 N + 1 N 1 if i in A_list:
            continue

         i in A_list i A_list continue Dp_list[i] = Dp_list[i-2] + Dp_list[i-1] Dp_list[i] Dp_list i Dp_list[i-2] + Dp_list[i-1] Dp_list[i-2] Dp_list i-2 i 2 Dp_list[i-1] Dp_list i-1 i 1 Dp_list[i] %= 1000000007 Dp_list[i] Dp_list i 1000000007 print(Dp_list[N]) print Dp_list[N] Dp_list N print(1) print 1 N, M = map(int,input().split()) map(int,input().split()) N M = map(int,input().split()) map(int,input().split()) M Dp_list = [0] * (N+1) [0] * (N+1) Dp_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())
A_list = set([int(input()) for _ in range(M)])
Dp_list = [0] * (N+1)
Dp_list[0] = 1

if 1 in A_list:
    Dp_list[1] = 0
else:
    Dp_list[1] = 1

if N != 1:
    for i in range(2, N + 1):
        if i in A_list:
            continue

        Dp_list[i] = Dp_list[i-2] + Dp_list[i-1]
        Dp_list[i] %= 1000000007
    print(Dp_list[N])
else:
    print(1)