import random
import math
import collections
import itertools
import functools
import operator
import os
import sys

ri = lambda: map(int, raw_input().split())
def pi(a): print (' '.join(map(str, a)))

n, a = input(), ri()
print reduce(lambda a, b : (a + b) / 2.0, sorted(a))
