import decimal N=int(input()) print(4*decimal.Decimal(0.75)**N)