n = int(input()) a = [int(x) for x in input().split()] a.sort() res = 0 if n % 2 != 0: res = a[n // 2] else: res = (a[n // 2] + a[n // 2 + 1]) / 2 print('{0:.1f}'.format(res))