ct = int(input()) lst = [int(i) for i in input().split()] lst.sort() output = 0 if ct % 2 == 0 : output = (lst[ct // 2 - 1] + lst[ct // 2]) / 2 else : output = lst[ct // 2] print( output )