#!/usr/bin/env python3
n = input()
cs = sorted(map(float, input().split()))
total_volume = 0
for c in cs:
    total_volume += c ** 3
print(total_volume ** (1 / 3))
