print('{:.10f}'.format(4*pow(3/4, int(input()))))