MOD = 10 ** 9 + 7

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

n, m = map(int, input().split())
a_s = [int(input()) for _ in range(m)] + [n + 1]
dp = [0 for _ in range(n + 1)]
dp[0] = 1
a_pos = 0
for i in range(1, n + 1):
    if a_s[a_pos] == i:
        a_pos += 1
        continue
    dp[i] = dp[i - 1] + dp[i - 2]
    dp[i] %= MOD
print(dp[-1])
