import std.stdio, std.conv, std.string, std.algorithm,
       std.math, std.array, std.container, std.typecons;

void main() {
  int n, k;
  readf("%d %d\n", &n, &k);
  bool[] sunuke = new bool[n];
  for(int i=0; i<k; i++) {
    int d = readln.chomp.to!int;
    int[] a = readln.chomp.split.to!(int[]);
    for(int j=0; j<d; j++) sunuke[a[j]-1] = true;
  }
  int count = 0;
  foreach(s;sunuke) if(!s) count++;
  count.writeln;
}
