Buggy python submission (verdict: Runtime Error):
from collections import Counter
n = int(input())
A = Counter(input())
B = Counter(input())
C = Counter(input())
D = A & B
E = D & C
print("".join(sorted(E.elements())))

Fixed submission:
from collections import Counter
n=int(input())
s=Counter(input())
for i in range(n-1):
    s&=Counter(input())
print("".join(sorted(s.elements())))

Buggy python submission (verdict: Runtime Error):
from collections import Counter
n = int(input())
A = Counter(input())
B = Counter(input())
C = Counter(input())
ans = ""
for key,value in A.items():
  ans.append(str(key)*min(value,B[key],C[key]))
print(sorted(ans))

Fixed submission:
from collections import Counter
n=int(input())
s=Counter(input())
for i in range(n-1):
    s&=Counter(input())
print("".join(sorted(s.elements())))

Buggy python submission (verdict: Runtime Error):
from collections import Counter
n = int(input())
A = Counter(list(input()))
B = Counter(list(input()))
C = Counter(list(input()))
ans = []
for key,value in A.items():
  ans.append(key*min(value,B[key],C[key]))
print(join(sorted(ans)),end="")

Fixed submission:
from collections import Counter
n=int(input())
s=Counter(input())
for i in range(n-1):
    s&=Counter(input())
print("".join(sorted(s.elements())))

Buggy python submission (verdict: Runtime Error):
from collections import Counter
n = int(input())
A = Counter(list(input()))
B = Counter(list(input()))
C = Counter(list(input()))
ans = []
for key,value in A.items():
  ans.append(str(key)*min(value,B[key],C[key]))
print(join(sorted(ans)),end="")

Fixed submission:
from collections import Counter
n=int(input())
s=Counter(input())
for i in range(n-1):
    s&=Counter(input())
print("".join(sorted(s.elements())))

Buggy python submission (verdict: Runtime Error):
from collections import Counter
n = int(input())
A = Counter(list(input()))
B = Counter(list(input()))
C = Counter(list(input()))
ans = ""
for key,value in A.items():
  ans.append(str(key)*min(value,B[key],C[key]))
print(sorted(ans))

Fixed submission:
from collections import Counter
n=int(input())
s=Counter(input())
for i in range(n-1):
    s&=Counter(input())
print("".join(sorted(s.elements())))

Buggy python submission (verdict: Runtime Error):
from collections import Counter
n = int(input())
A = Counter(list(map(input().split())))
B = Counter(list(map(input().split())))
C = Counter(list(map(input().split())))
ans = ""
for key,value in A.items():
  ans.append(str(key)*min(value,B[key],C[key]))
print(sorted(ans))

Fixed submission:
from collections import Counter
n=int(input())
s=Counter(input())
for i in range(n-1):
    s&=Counter(input())
print("".join(sorted(s.elements())))

Buggy python submission (verdict: Runtime Error):
from collections import Counter
n = int(input())
A = Counter(input().split())
B = Counter(input().split())
C = Counter(input().split())
ans = ""
for key,value in A.items():
  ans.append(str(key)*min(value,B[key],C[key]))
print(sorted(ans))

Fixed submission:
from collections import Counter
n=int(input())
s=Counter(input())
for i in range(n-1):
    s&=Counter(input())
print("".join(sorted(s.elements())))

Buggy python submission (verdict: Runtime Error):
from collections import Counter
n = int(input())
A = sorted(Counter(input().split()))
B = sorted(Counter(input().split()))
C = sorted(Counter(input().split()))
ans = ""
for key,value in A.items():
  ans.append(key*min(value,B[key],C[key]))
print(ans)

Fixed submission:
from collections import Counter
n=int(input())
s=Counter(input())
for i in range(n-1):
    s&=Counter(input())
print("".join(sorted(s.elements())))