n, m = map(int, input().split())
arr = set([int(input()) for _ in range(m)])

MOD = 10**9 + 7

dp = [0] * (n + 1)
dp[0] = 1

for i in range(1, n + 1):
    if not i in arr:
        if i == 1:
            dp[i] = dp[i - 1] % MOD
        else:
            dp[i] = (dp[i - 1] + dp[i - 2]) % MOD

print(dp[-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 arr = set([int(input()) for _ in range(m)]) arr set([int(input()) for _ in range(m)]) set [int(input()) for _ in range(m)] MOD = 10**9 + 7 MOD 10**9 + 7 10**9 10 9 7 dp = [0] * (n + 1) dp [0] * (n + 1) [0] 0 n + 1 n 1 dp[0] = 1 dp[0] dp 0 1 for i in range(1, n + 1):
    if not i in arr:
        if i == 1:
            dp[i] = dp[i - 1] % MOD
        else:
            dp[i] = (dp[i - 1] + dp[i - 2]) % MOD i range(1, n + 1) range 1 n + 1 n 1 if not i in arr:
        if i == 1:
            dp[i] = dp[i - 1] % MOD
        else:
            dp[i] = (dp[i - 1] + dp[i - 2]) % MOD not i in arr i in arr i arr if i == 1:
            dp[i] = dp[i - 1] % MOD
        else:
            dp[i] = (dp[i - 1] + dp[i - 2]) % MOD i == 1 i 1 dp[i] = dp[i - 1] % MOD dp[i] dp i dp[i - 1] % MOD dp[i - 1] dp i - 1 i 1 MOD dp[i] = (dp[i - 1] + dp[i - 2]) % MOD dp[i] dp i (dp[i - 1] + dp[i - 2]) % MOD dp[i - 1] + dp[i - 2] dp[i - 1] dp i - 1 i 1 dp[i - 2] dp i - 2 i 2 MOD print(dp[-1]) print dp[-1] dp -1 n, m = map(int, input().split()) map(int, input().split()) n dp = [0] * (n + 1) [0] * (n + 1) dp MOD = 10**9 + 7 10**9 + 7 MOD arr = set([int(input()) for _ in range(m)]) set([int(input()) for _ in range(m)]) arr m = map(int, input().split()) map(int, input().split()) m
n, m = map(int, input().split())
arr = set([int(input()) for _ in range(m)])

MOD = 10**9 + 7

dp = [0] * (n + 1)
dp[0] = 1

for i in range(1, n + 1):
    if not i in arr:
        if i == 1:
            dp[i] = dp[i - 1] % MOD
        else:
            dp[i] = (dp[i - 1] + dp[i - 2]) % MOD

print(dp[-1])