n = int(input())
nums = sorted([int(i) for i in input().split()])
mid = int(n / 2)

if n % 2 == 0:
    print('{:.1f}'.format((nums[mid] + nums[mid - 1]) / 2))
else:
    print(nums[mid])