#include <bits/stdc++.h>
using namespace std;
int v[303][303];
double s[303];
const int D = 2500;
inline int fastMax(int x, int y) { return x > y ? x : y; }
int main() {
  int n, k;
  cin >> n >> k;
  for (int i = 0; i < int(n); i++)
    for (int j = 0; j < int(k + 1); j++) cin >> v[i][j];
  for (int x = 0; x < int(k); x++)
    for (int d = 0; d < int(D + 1); d++) {
      int h, ymax = 0;
      for (int i = 0; i < int(n); i++) {
        int ycur = v[i][x] * (D - d) + v[i][x + 1] * d;
        h = fastMax(0, ycur - ymax);
        ymax = fastMax(ymax, ycur);
        s[i] += h;
        if (d != 0 && d != D) s[i] += h;
      }
    }
  for (int i = 0; i < int(n); i++) printf("%.9f\n", s[i] / D / 5000);
}
