#include <iostream>
#include <algorithm>
#include <cmath>
#include <vector>
#include <queue>
#include <set>
#include <map>

#define rep(i,n) for(int i=0;i<n;i++)
#define ll long long int
#define MAX 1000000007

using namespace std;

struct UnionFind{
  vector<int> par,num;

  UnionFind(int N) : par(N),num(N){
    for(int i=0;i<N;i++){
      par[i] = i;
      num[i] = 1;
    }
  }

  int root(int x){
    if(par[x] == x) return x;
    return par[x] = root(par[x]);
  }

  void unite(int x, int y){
    int rx = root(x);
    int ry = root(y);
    if(rx == ry) return;
    par[rx] = ry;
    num[ry] = num[ry]+num[rx]; 
  }

  int get_num(int x){
    int rx = root(x);
    return num[rx];
  }

  bool same(int x, int y){
    int rx = root(x);
    int ry = root(y);
    return rx == ry;
  }
};


int main(void){
  int n,k;
  cin >> n >> k;
  int flag[n+1];

  rep(i,n){
    flag[i+1] = false;
  }

  rep(i,k){
    int d;
    cin >> d;
    rep(j,d){
      int work;
      cin >> work;
      flag[work] = true;
    }
  }

  int cnt = 0;
  rep(i,n){
    if(flag[i+1] == false)cnt++;
  }

  cout << cnt << endl;
  return 0;
}
