#https://atcoder.jp/contests/abc129/tasks/abc129_c
N,M = map(int,input().split())
dp = [[] for i in range(N)]
for i in range(M):
    dp[int(input())-1] = 0

for i in range(N):
    if dp[i] != 0:
        if i == 0:
            dp[i] = 1
        elif i == 1:
            dp[i] = dp[i-1] + 1
        else:
            dp[i] = dp[i-1] + dp[i-2]
        
print(dp[-1] % 1000000007)      N,M = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split M [] for i in range(N) for i in range(N) i range(N) range N for i in range(N) [] dp = [[] for i in range(N)] dp [[] for i in range(N)] for i in range(M):
    dp[int(input())-1] = 0 i range(M) range M dp[int(input())-1] = 0 dp[int(input())-1] dp int(input())-1 int(input()) int input() input 1 0 for i in range(N):
    if dp[i] != 0:
        if i == 0:
            dp[i] = 1
        elif i == 1:
            dp[i] = dp[i-1] + 1
        else:
            dp[i] = dp[i-1] + dp[i-2]
         i range(N) range N if dp[i] != 0:
        if i == 0:
            dp[i] = 1
        elif i == 1:
            dp[i] = dp[i-1] + 1
        else:
            dp[i] = dp[i-1] + dp[i-2]
         dp[i] != 0 dp[i] dp i 0 if i == 0:
            dp[i] = 1
        elif i == 1:
            dp[i] = dp[i-1] + 1
        else:
            dp[i] = dp[i-1] + dp[i-2]
         i == 0 i 0 dp[i] = 1 dp[i] dp i 1 elif i == 1:
            dp[i] = dp[i-1] + 1
         i == 1 i 1 dp[i] = dp[i-1] + 1 dp[i] dp i dp[i-1] + 1 dp[i-1] dp i-1 i 1 1 dp[i] = dp[i-1] + dp[i-2] dp[i] dp i dp[i-1] + dp[i-2] dp[i-1] dp i-1 i 1 dp[i-2] dp i-2 i 2 print(dp[-1] % 1000000007) print dp[-1] % 1000000007 dp[-1] dp -1 1000000007 M = map(int,input().split()) map(int,input().split()) M N,M = map(int,input().split()) map(int,input().split()) N dp = [[] for i in range(N)] [[] for i in range(N)] dp
#https://atcoder.jp/contests/abc129/tasks/abc129_c
N,M = map(int,input().split())
dp = [[] for i in range(N)]
for i in range(M):
    dp[int(input())-1] = 0

for i in range(N):
    if dp[i] != 0:
        if i == 0:
            dp[i] = 1
        elif i == 1:
            dp[i] = dp[i-1] + 1
        else:
            dp[i] = dp[i-1] + dp[i-2]
        
print(dp[-1] % 1000000007)     