//ю4.9
import java.util.*;
import java.lang.*;
import java.io.*;
class FifthLab
{
{
Scanner input
= new Scanner
(System.
in); int n, m;
n = input.nextInt();
m = input.nextInt();
double[][] A = new double[n][m];
for(int i = 0; i < n; i++)
{
for(int j = 0; j < m; j++)
{
A[i][j] = input.nextDouble();
}
}
for(int i = 0; i < n; i++)
{
for(int j = 0; j < m; j++)
{
if(A[i][j] != 0)
{
A[i][j] = -(1/A[i][j]);
}
}
}
for(int i = 0; i < n; i++)
{
for(int j = 0; j < m; j++)
{
System.
out.
printf("%.3f ",A
[i
][j
]); }
}
}
}
Ly/RjjQuOQoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBGaWZ0aExhYgp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlTY2FubmVyIGlucHV0ID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCQlpbnQgbiwgbTsKCQkKCQluID0gaW5wdXQubmV4dEludCgpOwoJCW0gPSBpbnB1dC5uZXh0SW50KCk7CgkJCgkJZG91YmxlW11bXSBBID0gbmV3IGRvdWJsZVtuXVttXTsKCQkKCQlmb3IoaW50IGkgPSAwOyBpIDwgbjsgaSsrKQoJCXsKCQkJZm9yKGludCBqID0gMDsgaiA8IG07IGorKykKCQkJewoJCQkJQVtpXVtqXSA9IGlucHV0Lm5leHREb3VibGUoKTsKCQkJfQoJCX0KCQkKCQlmb3IoaW50IGkgPSAwOyBpIDwgbjsgaSsrKQoJCXsKCQkJZm9yKGludCBqID0gMDsgaiA8IG07IGorKykKCQkJewoJCQkJaWYoQVtpXVtqXSAhPSAwKQoJCQkJewoJCQkJCUFbaV1bal0gPSAtKDEvQVtpXVtqXSk7CgkJCQl9CgkJCX0KCQl9CgkJCgkJZm9yKGludCBpID0gMDsgaSA8IG47IGkrKykKCQl7CgkJCWZvcihpbnQgaiA9IDA7IGogPCBtOyBqKyspCgkJCXsKCQkJCVN5c3RlbS5vdXQucHJpbnRmKCIlLjNmICIsQVtpXVtqXSk7CgkJCX0KCQkJU3lzdGVtLm91dC5wcmludGxuKCk7CgkJfQoJfQp9