Skip to content
Snippets Groups Projects
4.py 156 B
Newer Older
hacker717's avatar
hacker717 committed
n, m = int(input()), int(input())
s = {input() for _ in range(n + m)}


sum = 2 * len(s) - m - n
if sum:
    print(sum)
else:
    print("Таких нет")