N, M = map(int, input().split(' '))

broken_list = []
if M > 0:
    for i in range(M):
        broken_list.append(int(input()))
        
broken_set =set(broken_list)
nums = [0] * (N + 1)
nums[0] = 1

if 1 not in broken_set:
    nums[1] = 1

for i in range(2, N + 1):
    nums[i] = nums[i - 1] + nums[i - 2]
    if i in broken_set:
        nums[i] = 0

print(nums[N] % 1000000007) N, M = map(int, input().split(' ')) N map(int, input().split(' ')) map int input().split(' ') ().split () input split ' ' M broken_list = [] broken_list [] if M > 0:
    for i in range(M):
        broken_list.append(int(input()))
         M > 0 M 0 for i in range(M):
        broken_list.append(int(input()))
         i range(M) range M broken_list.append(int(input())) broken_list.append broken_list append int(input()) int input() input broken_set =set(broken_list) broken_set set(broken_list) set broken_list nums = [0] * (N + 1) nums [0] * (N + 1) [0] 0 N + 1 N 1 nums[0] = 1 nums[0] nums 0 1 if 1 not in broken_set:
    nums[1] = 1 1 not in broken_set 1 broken_set nums[1] = 1 nums[1] nums 1 1 for i in range(2, N + 1):
    nums[i] = nums[i - 1] + nums[i - 2]
    if i in broken_set:
        nums[i] = 0 i range(2, N + 1) range 2 N + 1 N 1 nums[i] = nums[i - 1] + nums[i - 2] nums[i] nums i nums[i - 1] + nums[i - 2] nums[i - 1] nums i - 1 i 1 nums[i - 2] nums i - 2 i 2 if i in broken_set:
        nums[i] = 0 i in broken_set i broken_set nums[i] = 0 nums[i] nums i 0 print(nums[N] % 1000000007) print nums[N] % 1000000007 nums[N] nums N 1000000007 N, M = map(int, input().split(' ')) map(int, input().split(' ')) N broken_list = [] [] broken_list M = map(int, input().split(' ')) map(int, input().split(' ')) M nums = [0] * (N + 1) [0] * (N + 1) nums broken_set =set(broken_list) set(broken_list) broken_set
N, M = map(int, input().split(' '))

broken_list = []
if M > 0:
    for i in range(M):
        broken_list.append(int(input()))
        
broken_set =set(broken_list)
nums = [0] * (N + 1)
nums[0] = 1

if 1 not in broken_set:
    nums[1] = 1

for i in range(2, N + 1):
    nums[i] = nums[i - 1] + nums[i - 2]
    if i in broken_set:
        nums[i] = 0

print(nums[N] % 1000000007)