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