from math import pi n = int(input()) print(pi ** (2 * n) / (n * 6 ** n))