while True: try: h = int(input()) h_total = sum([h*2/(2**i) for i in range(5)])-h h_five = h/(2**5) print(round(h_total, 6)) print(round(h_five,6)) except: break
while True: try: h = int(input()) h_total = sum([h*2/(2**i) for i in range(5)])-h h_five = h/(2**5) print(round(h_total, 6)) print(round(h_five,6)) except: break