N = int(input()) result = 4.0 * (0.75 ** N) print("{0:.8f}".format(result))