#include <bits/stdc++.h>
using namespace std;
static const long long maxLL = (long long)1 << 62;
const long long MOD = 1000000007;
const long long INF = 1e18;
const double PI = 3.14159265359;
int ca[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
signed main() {
  int n, m;
  vector<int> list;
  int maxn = 9999999;
  int dp[100005];
  bool flag[100005];
  cin >> n >> m;
  memset(dp, 0, sizeof(dp));
  memset(flag, 0, sizeof(flag));
  for (int i = 0; i < m; i++) {
    int num;
    cin >> num;
    flag[num] = true;
  }
  dp[0] = 1;
  if (flag[1] == false) {
    dp[1] = 1;
  }
  for (int i = 2; i <= n; i++) {
    if (flag[i] == true) continue;
    dp[i] += dp[i - 1];
    dp[i] %= MOD;
    dp[i] += dp[i - 2];
    dp[i] %= MOD;
  }
  for (int i = 2; i <= n; i++) {
    cout << "i->" << dp[i] << endl;
  }
  getchar();
  getchar();
  return 0;
}
