#include <bits/stdc++.h>
using namespace std;

int main() {
  ios::sync_with_stdio(false);
  /* code start */

  int n, k;
  int darr[101];
  n = k = 0;
  for (int i = 0; i < 102; i++) {
    darr[i] = 0;
  }

  cin >> n >> k;

  for (int i = 0; i < k; i++) {
    int tmp;
    cin >> tmp;
    for (int j = 0; j < tmp; j++) {
      int okasi;
      cin >> okasi;
      darr[okasi] |= true;
    }
    /* code */
  }

  int ans = 0;
  for (int i = 1; i < n; i++) {
    if (!darr[i])
      ans++;
  }

  cout << ans << endl;

  /* code end   */
  return 0;
}
