from math import asin, sin, pi R, K = map(int, input().split()) def area(l): a = asin(l / R) return (R * R) * (a + (sin(2 * a) / 2) + (pi / 2)) sa = 10 ** (-6) for i in range(K): goal = R * R * pi * ((i + 1) / (K + 1)) ok, ng = -R, R while ng - ok > sa: mid = (ok + ng) / 2 if area(mid) < goal: ok = mid else: ng = mid print(ok)