#include <bits/stdc++.h>
using namespace std;
int n, k, x, y, h, ym, K = 1700, v[302][302], i, j, p, q, t;
double s[302];
int main() {
  cin >> n >> k;
  for (; p < n; p++)
    for (q = 0; q <= k; q++) cin >> v[p][q];
  for (; x < k; x++)
    for (j = 0; j <= K; j++)
      for (i = 0; i < n; i++)
        ym = (!i ? 0 : ym), y = v[i][x] * (K - j) + v[i][x + 1] * j,
        h = max(0, y - ym), ym = max(ym, y),
        s[i] += h * (j > 0 && j < K ? 2 : 1);
  for (; t < n; t++) cout << s[t] / (2 * K * K) << endl;
}
