'''python
j=int(input())
u=[]
for i in range(j):
u.append(int(input()) u=sorted(u)
if j%2==0:
print((u[j/2]+u[j/2+1])/2)
else:
print(u[(j+1)/2])
'''