n = input() a = map(float, raw_input().split()) a = sorted(a) if n %2 ==0: print (a[n/2-1]+ a[n/2])/2 else : print a[n/2]