print 3.0 * (3.0 / 4.0) ** (input() - 1)