import math R, K = map(int, input().split()) if K == 1: print(0) else: for i in range(1, K + 1): y = R * math.cos(math.acos((K - 2 * i) / K)) print(y)