#!/usr/bin/python from fractions import Fraction n = int(raw_input()) an = 4 * Fraction('3/4') ** n print '{:.15f}'.format(float(an))