#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main(){
  int N = 0, K = 0, A = 0, d = 0, sunuke[101] = { 0 }, ans = 0;
  scanf("%d", &N);
  scanf("%d", &K);
  ans = N;
  for (int i = 0; i < K; i++) {
    scanf("%d", &d);
    for (int k = 0; k < d; k++) {
      scanf("%d", &A);
      if (sunuke[A] == 0) {
        ans--;
        sunuke[A] = 1;
      }
    }
  }
  printf("%d", ans);
  return 0;
}