#include <iostream>
using namespace std;
void Average(double aq[],int n, int m)
{
int x1, x2, x3, j, k;
double average = 0;
int sum1 = 0;
x1 = n/m;
x3 = m*x1;
x2 = n - x3;
for(j = 1; j <= x3; ++j)
{
sum1 += aq[j-1];
while(j % m == 0)
{
average = sum1 / m;
cout << average;
if(j != n) cout << " ";
sum1 = 0;
break;
}
}
if(x3 == n) cout << endl;
if(x2 != 0)
{
for(k = n; k > n-x2; k--)
{
int sum2 = 0;
sum2 += aq[k-1];
average = sum2 / x2;
}
cout << average << endl;
}
}
int main()
{
double a[101];
int n, m, i;
while(cin >> n >> m)
{
for(i = 0; i < n; ++i)
a[i] = 2 * (i+1);
Average(a, n, m);
}
return 0;
}
using namespace std;
void Average(double aq[],int n, int m)
{
int x1, x2, x3, j, k;
double average = 0;
int sum1 = 0;
x1 = n/m;
x3 = m*x1;
x2 = n - x3;
for(j = 1; j <= x3; ++j)
{
sum1 += aq[j-1];
while(j % m == 0)
{
average = sum1 / m;
cout << average;
if(j != n) cout << " ";
sum1 = 0;
break;
}
}
if(x3 == n) cout << endl;
if(x2 != 0)
{
for(k = n; k > n-x2; k--)
{
int sum2 = 0;
sum2 += aq[k-1];
average = sum2 / x2;
}
cout << average << endl;
}
}
int main()
{
double a[101];
int n, m, i;
while(cin >> n >> m)
{
for(i = 0; i < n; ++i)
a[i] = 2 * (i+1);
Average(a, n, m);
}
return 0;
}