def f(n,x): return (-1) ** (n - 1) * (x ** (2 * n -1) / (2 * n - 1)) print(f(int(input()), float(input())))