g = int(input())
f = 0
for n in range(1,6):
    f += g
    g = g/2
    if n==5:
        print(f)
        print(g)
    else:
        f+=g