n = int(input()) a = sorted(list(map(int, input().split()))) if n % 2 == 0: print((a[n // 2] + a[(n - 1) // 2]) / 2) else: print(a[n // 2])