import math

h = int(input())
h_sum = h
for i in range(4):
    reb = h/(math.pow(2, i+1))
    h_sum = h_sum + reb*2
h_sum = h_sum 
reb5 =h/(math.pow(2,5))
print(h_sum)
print(reb5)