function Main(input){
  // 文字列を格納
  let ary = input.trim().split('\n');
  let tmp = ary[0].split(' ');
  ary.shift();
  let n = parseInt(tmp[0]);
  let set = new Set();

  for (let i = 0; i <= n; i++){
    if (i % 2 != 0){
      tmp = ary[i].split(' ');
      tmp.map(function(v){
        set.add(v);
      });
    }
  }

  console.log(n - set.size);
};

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
