/* n, k <= 1000 a_i,j <= 10 */ // In the name of God. // You are anything and We are nothing. // Ya Ali! #include using namespace std; const int maxn = 3e3 + 17; int n, k; double a[maxn][maxn], sum[maxn]; int main(){ ios::sync_with_stdio(0), cin.tie(0); cin >> n >> k; for(int i = 0; i < n; i++){ for(int j = 0; j < k; j++){ cin >> a[i][j]; if(i) a[i][j] += a[i - 1][j] / sum[i - 1]; sum[i] += a[i][j]; } } cout << fixed << setprecision(6); for(int i = 0; i < k; i++) cout << a[n - 1][i] / sum[n - 1] << " \n"[i == k - 1]; }