h=int(input())
distance=h
for i in range(1,6):
    new_h = h*((1/2)**i)
    if i<5:
        distance += 2*new_h
print(distance)
print(new_h)