import math R,K=map(int,input().split()) def area(theta): if theta<=math.pi/2: return math.pi*R**2/4+R**2*math.cos(theta)*math.sin(theta)/2+(math.pi/2-theta)*R**2/2 else: return (math.pi-theta)*R**2/2+R**2*math.cos(theta)*math.sin(theta)/2 #print(area(0)) #print(area(math.pi)) for i in range(K): l=0 r=math.pi for _ in range(100): now=(r+l)/2 if area(now)<=math.pi*R**2*(i+1)/(2*(K+1)): r=now else: l=now print(R*math.cos(l))