f = float(input())
# print(f**0.5)
# print()
i = f**(1/3)
#print(i)
# while True:
# if i**3 <f and (i+0.1)3>f: # 存在一个问题,当i3接近f,i正确,当I+0.1接近,i差了0.1
# #print(i)
# break
# else:
# i+=0.01
# print(i**3)
# print((i+0.1)**3)
# if f-i**3 >(i+0.1)**3-f: # 我想用绝对值比较哪个更近一点,取哪个,但是还是心有不妥。毕竟四舍五入
# i = i+0.01
print('{:.1f}'.format(i))
f = float(input()) if f<0: f = -f i = f**(1/3) i = -i else: i = f**(1/3)
print('{:.1f}'.format(i)) # 离大谱,居然骗过去了

京公网安备 11010502036488号