import sys
a = 1/3
for n in sys.stdin:
n = float(n)
data = abs(n)**a
if n > 0:
print("%.1f" % data)
else:
print("-%.1f" % data)
import sys
a = 1/3
for n in sys.stdin:
n = float(n)
data = abs(n)**a
if n > 0:
print("%.1f" % data)
else:
print("-%.1f" % data)