N = int(input()) print("{0:.15f}".format(4 * pow(0.75, N)))