import sys
while True:
try:
h = float(input())
s = h
for i in range(4):
s += h #弹起和落下都是1/2高度
h /= 2
s = "%0.6f"%s
h = "%0.6f"%(h / 2)
print(s.rstrip('0'))
print(h.rstrip('0'))
except:
# print(sys.exc_info())
break



京公网安备 11010502036488号