Buggy python submission (verdict: Runtime Error):
whatMan = []

N, K = input().split()
for i in range(int(K)):
    whatMan.extend(input().split())
print(int(N) - set(whatMan).count)

Fixed submission:
whatMan = []

N, K = input().split()
for i in range(int(K)):
    input()
    whatMan.extend(input().split())
print(int(N) - len(set(whatMan)))

Buggy python submission (verdict: Runtime Error):
whatMan = []

N, K = input().split()
for i in range(int(K)):
    whatMan.extend(input().split())
print(int(N) - set(wahtMan).count)

Fixed submission:
whatMan = []

N, K = input().split()
for i in range(int(K)):
    input()
    whatMan.extend(input().split())
print(int(N) - len(set(whatMan)))

Buggy python submission (verdict: Runtime Error):
whatMan = []

N, K = input().split()
wahtMan.extend(input().split())
print(wahtMan)

Fixed submission:
whatMan = []

N, K = input().split()
for i in range(int(K)):
    input()
    whatMan.extend(input().split())
print(int(N) - len(set(whatMan)))

Buggy python submission (verdict: Runtime Error):
whatMan = []

N, K = input().split()
for i in range(int(K)):
    wahtMan.extend(input().split())
print(wahtMan)

Fixed submission:
whatMan = []

N, K = input().split()
for i in range(int(K)):
    input()
    whatMan.extend(input().split())
print(int(N) - len(set(whatMan)))

Buggy python submission (verdict: Runtime Error):
whatMan = []
 
N, K = input().split()
for i in range(int(K)):
    wahtMan.append(input().split())
print(wahtMan)

Fixed submission:
whatMan = []

N, K = input().split()
for i in range(int(K)):
    input()
    whatMan.extend(input().split())
print(int(N) - len(set(whatMan)))

Buggy python submission (verdict: Runtime Error):
whatMan = []
 
N, K = input()
for i in range(int(K)):
    wahtMan.append(input().split())
print(wahtMan)

Fixed submission:
whatMan = []

N, K = input().split()
for i in range(int(K)):
    input()
    whatMan.extend(input().split())
print(int(N) - len(set(whatMan)))

Buggy python submission (verdict: Runtime Error):
whatMan = []

N, K = input().split()
for i in range(int(K)):
    wahtMan.append(input().split())
print(wahtMan)

Fixed submission:
whatMan = []

N, K = input().split()
for i in range(int(K)):
    input()
    whatMan.extend(input().split())
print(int(N) - len(set(whatMan)))

Buggy python submission (verdict: Runtime Error):
whatMan = []
 
N, K = input()
for i in range(int(K)):
　　　　wahtMan.append(input().split())
print(wahtMan)

Fixed submission:
whatMan = []

N, K = input().split()
for i in range(int(K)):
    input()
    whatMan.extend(input().split())
print(int(N) - len(set(whatMan)))

Buggy python submission (verdict: Runtime Error):
whatMan = []

N, K = input()
for i in range(int(K)):
    wahtMan.append(input().split())

print(int(N) - set(wahtMan).count)

Fixed submission:
whatMan = []

N, K = input().split()
for i in range(int(K)):
    input()
    whatMan.extend(input().split())
print(int(N) - len(set(whatMan)))

Buggy python submission (verdict: Runtime Error):
whatMan = []

N, K = input()
for i in range(1, K):
    wahtMan.append(input().split())
print(N - set(wahtMan).count)

Fixed submission:
whatMan = []

N, K = input().split()
for i in range(int(K)):
    input()
    whatMan.extend(input().split())
print(int(N) - len(set(whatMan)))