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

for i in range(1,N+1):
    if Route_List[i] != 0:
        if i == 1:
            Route_List[i] = 1
        else:
            Route_List[i] = Route_List[i-1] + Route_List[i-2]

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

    
    
         i range(1,N+1) range 1 N+1 N 1 if Route_List[i] != 0:
        if i == 1:
            Route_List[i] = 1
        else:
            Route_List[i] = Route_List[i-1] + Route_List[i-2]

    
    
         Route_List[i] != 0 Route_List[i] Route_List i 0 if i == 1:
            Route_List[i] = 1
        else:
            Route_List[i] = Route_List[i-1] + Route_List[i-2]

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

for i in range(1,N+1):
    if Route_List[i] != 0:
        if i == 1:
            Route_List[i] = 1
        else:
            Route_List[i] = Route_List[i-1] + Route_List[i-2]

    
    
        
print(Route_List[-1] % 1000000007)