# 円の上半分でy座標を求めて、あとはミラーで下半分作る # Kが奇数ならy=0が含まれる # 二分探索で求めるか # あるyで切ったときの上のケーキの面積は # S = theta*R**2 - y*R*sintheta where theta = arccos(y/R) R, K = map(int, input().split()) import math def calc_area(y): theta = math.acos(y/R) area = theta*(R**2) - y*R*math.sin(theta) return area ans_list = [] if K%2 == 1: ans_list.append(0) for k in range(K//2): find = math.pi*(R**2)*((k+1)/(K+1)) OK = R NG = 0 for i in range(100): mid = (OK+NG)/2 if calc_area(mid) <= find: OK = mid else: NG = mid ans_list.append(OK) ans_list.append(-OK) ans_list.sort() #print(ans_list) for a in ans_list: print(a)