import sys
while 1:
try:
n = int(sys.stdin.readline().strip('\n'))
w = [0]*n
for j in range(n):
w[j]=int(sys.stdin.readline().strip('\n'))
w = sorted(w)
t = n // 2
if n % 2 == 0:
a = w[t-1]
b = w[t]
print('A=',end='')
for k in range(a,b):
print(str(k)+'、',end='')
print(str(b))
else:
print('A='+str(w[t]))
except:
break