import sys
readline = sys.stdin.readline

N,M = map(int,readline().split())

broken = set([int(readline()) for i in range(M)])

dp = [0] * (N + 1)
dp[0] = 1
if 1 not in broken:
  dp[1] = 1
  
DIV = 10 ** 9 + 7

for i in range(2, N + 1):
  if i in broken:
    continue
  dp[i] = dp[i - 2] + dp[i - 1]
  dp[i] %= DIV
  
print(dp[N]) import sys sys readline = sys.stdin.readline readline sys.stdin.readline sys.stdin sys stdin readline N,M = map(int,readline().split()) N map(int,readline().split()) map int readline().split() ().split () readline split M int(readline()) for i in range(M) for i in range(M) i range(M) range M for i in range(M) int(readline()) int readline() readline broken = set([int(readline()) for i in range(M)]) broken set([int(readline()) for i in range(M)]) set [int(readline()) for i in range(M)] dp = [0] * (N + 1) dp [0] * (N + 1) [0] 0 N + 1 N 1 dp[0] = 1 dp[0] dp 0 1 if 1 not in broken:
  dp[1] = 1
   1 not in broken 1 broken dp[1] = 1 dp[1] dp 1 1 DIV = 10 ** 9 + 7 DIV 10 ** 9 + 7 10 ** 9 10 9 7 for i in range(2, N + 1):
  if i in broken:
    continue
  dp[i] = dp[i - 2] + dp[i - 1]
  dp[i] %= DIV
   i range(2, N + 1) range 2 N + 1 N 1 if i in broken:
    continue
   i in broken i broken continue dp[i] = dp[i - 2] + dp[i - 1] dp[i] dp i dp[i - 2] + dp[i - 1] dp[i - 2] dp i - 2 i 2 dp[i - 1] dp i - 1 i 1 dp[i] %= DIV dp[i] dp i DIV print(dp[N]) print dp[N] dp N DIV = 10 ** 9 + 7 10 ** 9 + 7 DIV M = map(int,readline().split()) map(int,readline().split()) M dp = [0] * (N + 1) [0] * (N + 1) dp N,M = map(int,readline().split()) map(int,readline().split()) N readline = sys.stdin.readline sys.stdin.readline readline broken = set([int(readline()) for i in range(M)]) set([int(readline()) for i in range(M)]) broken
import sys
readline = sys.stdin.readline

N,M = map(int,readline().split())

broken = set([int(readline()) for i in range(M)])

dp = [0] * (N + 1)
dp[0] = 1
if 1 not in broken:
  dp[1] = 1
  
DIV = 10 ** 9 + 7

for i in range(2, N + 1):
  if i in broken:
    continue
  dp[i] = dp[i - 2] + dp[i - 1]
  dp[i] %= DIV
  
print(dp[N])