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