if __name__ == '__main__':
    n = int(input())

    Arrnums = sorted([float(x) for x in input().split(' ')])
    j = 1
    print(*Arrnums)
    q = Arrnums[0]
    for i in range(j, n):
        q = (Arrnums[i] + q)/2

    print(q)