def C():
    N = int(input())
    values = list(map(int, input().split()))

    values = sorted(values, reverse=True)
    total_value = sum([values[i]*((1/2)**i) for i in range(N)])

    print(total_value)


if __name__ == '__main__':
    C()
