2495: AtCoder166 B - Trick or Treat
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:10
Solved:5
Description
Problem Statement
NN Snukes called Snuke1, Snuke2, ..., SnukeN live in a town.There are K kinds of snacks sold in this town, called Snack1, Snack2, ..., Snack K. The following didi Snukes have Snack ii: Snuke Ai,1,Ai,2,⋯,Ai,di
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≤N≤100
1≤K≤100
1≤di≤N
1≤Ai,1<⋯<Ai,di≤N
Input
Input is given from Standard Input in the following format:
N K
d1
A1,1⋯A1,d1
⋮⋮
dK
AK,1⋯AK,dK
Output
Print the answer.
Sample Input Copy
3 2
2
1 3
1
3
Sample Output Copy
1