import itertools

n = int(input())
data = list(map(int, input().split()))

def comp(a, b):
    r = (a + b) / 2
    return r

for d in list(itertools.permutations(data, n)):
    ans = []

    tmp = d[0]
    for i in range(n-1):
        tmp = comp( tmp, d[i+1])
    
    ans.append(tmp)

print(*ans)


