Buggy python submission (verdict: Runtime Error):
n=int(input())
s=[input() for _ in range(n)]
m=int(input())
t=[input() for _ in range(m)]
for i in set(s):
    result=s.count(i)-t.count(i)
print(max(o,result))


Fixed submission:
n=int(input())
s=[input() for _ in range(n)]
m=int(input())
t=[input() for _ in range(m)]
result=0
for i in set(s):
    result=max(result,s.count(i)-t.count(i))
print(result)

Buggy python submission (verdict: Runtime Error):
n=int(input())
s=[input() for _ in range(n)]
m=int(input())
t=[input() for _ in range(m)]
for i in range(n):
    result=s.count(s[i])-t.count(s[i])
print(max(o,result))


Fixed submission:
n=int(input())
s=[input() for _ in range(n)]
m=int(input())
t=[input() for _ in range(m)]
result=0
for i in set(s):
    result=max(result,s.count(i)-t.count(i))
print(result)

Buggy python submission (verdict: Runtime Error):
n=int(input())
s=[input() for i in range(n)]
m=int(input())
t=[input() for j in range(m)]
for i in range(n):
    result=s.count(s[i])-t.count(s[i])
print(max(o,result))


Fixed submission:
n=int(input())
s=[input() for _ in range(n)]
m=int(input())
t=[input() for _ in range(m)]
result=0
for i in set(s):
    result=max(result,s.count(i)-t.count(i))
print(result)

Buggy python submission (verdict: Runtime Error):
n=int(input())
for i in range(n):
    s=list(input())
m=int(input())
for j in range(m):
    t=list(input())

result=0
for i in range(n):
    result=s.count(s[i])-t.count(s[i])

print(max(o,result))


Fixed submission:
n=int(input())
s=[input() for _ in range(n)]
m=int(input())
t=[input() for _ in range(m)]
result=0
for i in set(s):
    result=max(result,s.count(i)-t.count(i))
print(result)

Buggy python submission (verdict: Runtime Error):
n=int(input())
s=list(input() for i in range(n))
m=int(input())
t=list(input() for j in range(m))

for i in range(n):
    result=s.count(s[i])-t.count(s[i])

print(max(o,result))


Fixed submission:
n=int(input())
s=[input() for _ in range(n)]
m=int(input())
t=[input() for _ in range(m)]
result=0
for i in set(s):
    result=max(result,s.count(i)-t.count(i))
print(result)

Buggy python submission (verdict: Runtime Error):
n=int(input())
for i in range(n):
    s=list(input())
m=int(input())
for j in range(m):
    t=list(input())

for i in range(n):
    result=s.count(s[i])-t.count(s[i])

print(max(o,result))


Fixed submission:
n=int(input())
s=[input() for _ in range(n)]
m=int(input())
t=[input() for _ in range(m)]
result=0
for i in set(s):
    result=max(result,s.count(i)-t.count(i))
print(result)

Buggy python submission (verdict: Runtime Error):
n=int(input())
for i in range(n):
    s=list(str(input()))
m=int(input())
for j in range(m):
    t=list(str(input()))

for i in range(n):
    result=s.count(s[i])-t.count(s[i])

print(max(o,result))

Fixed submission:
n=int(input())
s=[input() for _ in range(n)]
m=int(input())
t=[input() for _ in range(m)]
result=0
for i in set(s):
    result=max(result,s.count(i)-t.count(i))
print(result)

Buggy python submission (verdict: Runtime Error):
import collections

n=int(input())
for i in range(n):
    s=list(input())
m=int(input())
for j in range(m):
    t=list(input())

cs=collections.Counter(s)
ct=collections.Counter(t)

cst=cs-ct

print(max(cst))

Fixed submission:
n=int(input())
s=[input() for _ in range(n)]
m=int(input())
t=[input() for _ in range(m)]
result=0
for i in set(s):
    result=max(result,s.count(i)-t.count(i))
print(result)

Buggy python submission (verdict: Runtime Error):
import collections

n=int(input())
for i in range(n):
    s=list(map(str,input()))
m=int(input())
for j in range(m):
    t=list(map(str,input()))

cs=collections.Counter(s)
ct=collections.Counter(t)

cst=cs-ct

print(max(cst))

Fixed submission:
n=int(input())
s=[input() for _ in range(n)]
m=int(input())
t=[input() for _ in range(m)]
result=0
for i in set(s):
    result=max(result,s.count(i)-t.count(i))
print(result)

Buggy python submission (verdict: Runtime Error):
import collections

n=int(input())
for i in range(n):
    s=list(map(str,input().split()))
m=int(input())
for j in range(m):
    t=list(map(str,input().split()))

cs=collections.Counter(s)
ct=collections.Counter(t)

cst=cs-ct

print(max(cst))

Fixed submission:
n=int(input())
s=[input() for _ in range(n)]
m=int(input())
t=[input() for _ in range(m)]
result=0
for i in set(s):
    result=max(result,s.count(i)-t.count(i))
print(result)

Buggy python submission (verdict: Runtime Error):
import collections

n=int(input())
for i in range(n):
    s=list(map(str,input()))
m=int(input())
for j in range(m):
    t=list(map(str,input()))

cs=collections.Counter(s)
ct=collections.Counter(t)

cst=cs-ct

print(max(cst))

Fixed submission:
n=int(input())
s=[input() for _ in range(n)]
m=int(input())
t=[input() for _ in range(m)]
result=0
for i in set(s):
    result=max(result,s.count(i)-t.count(i))
print(result)

Buggy python submission (verdict: Runtime Error):
import collections

n=int(input())
for i in range(n):
    s=list(str(input()))
m=int(input())
for j in range(m):
    t=list(str(input()))

cs=collections.Counter(s)
ct=collections.Counter(t)

cst=cs-ct

print(max(cst))


Fixed submission:
n=int(input())
s=[input() for _ in range(n)]
m=int(input())
t=[input() for _ in range(m)]
result=0
for i in set(s):
    result=max(result,s.count(i)-t.count(i))
print(result)