Problem:
Score : 200 points

Problem Statement

N Snukes called Snuke 1, Snuke 2, ..., Snuke N live in a town.

There are K kinds of snacks sold in this town, called Snack 1, Snack 2, ..., Snack K. The following d_i Snukes have Snack i: Snuke A_{i, 1}, A_{i, 2}, \cdots, A_{i, {d_i}}.

Takahashi will walk around this town and make mischief on the Snukes who have no snacks. How many Snukes will fall victim to Takahashi's mischief?

Constraints

All values in input are integers.

1 \leq N \leq 100

1 \leq K \leq 100

1 \leq d_i \leq N

1 \leq A_{i, 1} < \cdots < A_{i, d_i} \leq N

Input

Input is given from Standard Input in the following format:

N K
d_1
A_{1, 1} \cdots A_{1, d_1}
\vdots
d_K
A_{K, 1} \cdots A_{K, d_K}

Output

Print the answer.

Sample Input 1

3 2
2
1 3
1
3

Sample Output 1

1

Snuke 1 has Snack 1.

Snuke 2 has no snacks.

Snuke 3 has Snack 1 and 2.

Thus, there will be one victim: Snuke 2.

Sample Input 2

3 3
1
3
1
3
1
3

Sample Output 2

2

Solution in PHP (7.4.4) (judge verdict: Wrong Answer)

<?php
while ($line = fgets(STDIN)) {
   $s[] = trim($line);
}
$n = 0;
//var_dump($s);
$arr = explode(" ", trim($s[0]));
$people = $arr[0];

if($arr[1] == 0){
echo $people;
exit;
}
if($people == 0){
echo $people;
exit;
}

echo "people: {$people}\n";
$p = array();
for($i = 1;$i<=$people;$i++){
$p[$i] = 0;
//echo " ループだよ p[{$i}]".$p[$i]."\n";
}

var_dump($p);

$t = 0;
foreach($s as $key => $v){
$t++;
if($key < 2) continue;
$arr = explode(" ", trim($v));
$cnt = count($arr);
//echo "cnt:$cnt\n";

if(($t % 2) == 1){
//echo "2の倍数 お菓子をもらえる人が何番目\n";
foreach($arr as $value){
//echo "value:$value \n";
$p[$value] += 1;
//echo "現在のp[value]は".$p[$value]."\n";
}
}// else
else{
//echo "2の倍数以外";

}//else t


}
//echo "n:$n";

//print_r($arr);

//echo "pの中身";
//print_r($p);

for($x=1;$x<=$people;$x++){

//echo "x: {$x} p[{$x}]".$p[$x]."\n";
if($p[$x] == 0){
$n++;
}

}

//echo "現在お菓子もっていない人は{$n}人です。全部で{$people}人います\n";



echo $n;

?>