s=int(input()) s1=s for i in range(1,5): global i1 i=s1*0.5**i*2 s=s+i i1=i # print(i) print(s) print(i/4)