#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < n; ++i)
using namespace std;

int main(){
    int n,k;
    cin >> n >> k;
    int d[k];
    int a_buff;
    int sum[n];
    rep(i,n) sum[i] = 0;
    int cnt = 0;
    rep(i,k){
        cin >> d[i];
        rep(j,d[i]){
            cin >> a_buff;
            sum[a_buff-1]++;
        }
    }
    
    rep(i,n){
        if(sum[i] == 0){
            cnt++;
        }
    }

    cout << cnt << endl;

    return 0;
}