#include using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } #define PI 3.14159265358979323846 int main() { fast_io(); int R, k; cin >> R >> k; vector ans; for (int i = 1; i <= k / 2; i++) { auto f = [&](double theta) { return theta - sin(2 * theta) / 2; }; double l = 0, r = PI / 2; for (int j = 0; j < 100; j++) { double m = (l + r) / 2; if (f(m) < PI * i / (k + 1)) { l = m; } else { r = m; } } ans.push_back(R * cos(l)); ans.push_back(-R * cos(l)); } if (k % 2 == 1) { ans.push_back(0); } sort(ans.begin(), ans.end()); cout << setprecision(16) << fixed; for (auto e : ans) { cout << e << endl; } }