n = int(input()) result = 4.0 * (3.0 / 4.0) ** n print("{0:.8f}".format(result))