N = int(input().strip()) lst = sorted([int(i) for i in input().strip().split(' ')]) if len(lst) % 2 == 1: print(lst[len(lst) // 2]) else: print('{:.1f}'.format(sum(lst[len(lst) // 2 - 1:len(lst) // 2 + 1]) / 2.0))