要点:
1. 一般会在要求保留的数位上再加2位(经验做法);
2. 判定退出条件时(计算误差)不要忘记取绝对值;
n = float(input())
l = -10000
r = 10000
mid = 0
while abs(mid**3 - n) > 1e-08:
mid = (l + r) / 2
if mid ** 3 < n:
l = mid
else:
r = mid
print(format(mid, ".6f"))