| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1307395 | lasandra | Tracks in the Snow (BOI13_tracks) | C++20 | 0 ms | 0 KiB |
n, m = map(int, input().split())
mark = set()
for _ in range(n):
listing = input().split()
# print(listing)
for x in listing:
mark.add(x)
print(len(mark) - 1)
