from decimal import Decimal n = int(input()) an = 4.0 for _ in range(n): an *= 3 an /= 4 print('{0:.10f}'.format(an))