N=int(input()) ans=4*pow(0.75,N) print('{:.20f}'.format(ans))