from fractions import Fraction N = int(input()) print(float(4 * Fraction(3, 4) ** N))