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