N, K = list(map(int, input().split()))

sunuke = [0]*N

for _ in range(K):

    d = int(eval(input()))

    A = list(map(int, input().split()))

    for a in A:

        sunuke[a-1] += 1



ans = 0

for i in range(N):

    if sunuke[i-1] == 0:

        ans += 1

print(ans)

import sys

sys.setrecursionlimit(10 ** 6)





def input():

    return sys.stdin.readline()[:-1]





N, K = list(map(int, input().split()))

A = [0]*N

for _ in range(K):

    d = int(eval(input()))

    tmp = list(map(int, input().split()))

    for a in tmp:

        A[a-1] += 1



print((A.count(0)))

N, K = list(map(int, input().split()))
sunuke = [0] * N
for _ in range(K):
    d = int(eval(input()))
    A = list(map(int, input().split()))
    for a in A:
        sunuke[a - 1] += 1
ans = 0
for i in range(N):
    if sunuke[i - 1] == 0:
        ans += 1
print(ans)

import sys

sys.setrecursionlimit(10**6)


def input():
    return sys.stdin.readline()[:-1]


N, K = list(map(int, input().split()))
A = [0] * N
for _ in range(K):
    d = int(eval(input()))
    tmp = list(map(int, input().split()))
    for a in tmp:
        A[a - 1] += 1
print((A.count(0)))

+import sys + +sys.setrecursionlimit(10**6) + + +def input(): +    return sys.stdin.readline()[:-1] + + -sunuke = [0] * N +A = [0] * N -    A = list(map(int, input().split())) -    for a in A: -        sunuke[a - 1] += 1 -ans = 0 -for i in range(N): -    if sunuke[i - 1] == 0: -        ans += 1 -print(ans) +    tmp = list(map(int, input().split())) +    for a in tmp: +        A[a - 1] += 1 +print((A.count(0)))