n = int(raw_input()) inpt = map(int, raw_input().split()) inpt.sort() if n % 2 == 0: print float(inpt[n/2-1] + inpt[n/2]) / 2 else: print inpt[n/2]