#include<stdio.h>
 
int main(void) {
 
    int N, K, d;
    int i = 0, time = 0, temp;
    int flag = 0;
    int Sunuke[101];
 
    scanf("%d", &N);
    scanf("%d", &K);
 
    while (time < K) {
      scanf("%d", &d);
      for (i = 0; i < d; i++) {
        scanf("%d", &temp);
        Sunuke[(temp - 1)] = 1;
      }
      time++;
    }
 
    for (i = 0; i < N; i++) {
      if (Sunuke[i] != 1) {
        flag++;
      }
    }
    printf("%d\n", flag);
 
    return 0;
}