import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
public static void main
(String[] args
) {
Scanner in
= new Scanner
(System.
in); int n=in.nextInt();
double[] b = new double[n];
double[][] z = new double[n][n];
for(int i = 0; i < n; i++)
{
for(int j = 0; j < n; j++)
{
z[i][j]=in.nextDouble();
}
}
for (int i = 0; i < n; i++)
{
b[i] = 0;
for(int j = 0; j < n; j++)
if(z[i][j] < 0)
{
b[i] = 1;
break;
}
}
for (int i = 0; i < n; i++)
{
System.
out.
printf("%.1f ",b
[i
]); }
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIAoJewoJCVNjYW5uZXIgaW4gPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwogICAgCWludCBuPWluLm5leHRJbnQoKTsKICAgIAlkb3VibGVbXSBiID0gbmV3IGRvdWJsZVtuXTsKICAgIAlkb3VibGVbXVtdIHogPSBuZXcgZG91YmxlW25dW25dOwogICAgCWZvcihpbnQgaSA9IDA7IGkgPCBuOyBpKyspCiAgICAJewogICAgCQlmb3IoaW50IGogPSAwOyBqIDwgbjsgaisrKQogICAgCQl7CiAgICAJCQl6W2ldW2pdPWluLm5leHREb3VibGUoKTsKICAgIAkJfQogICAgCX0KICAgIAlmb3IgKGludCBpID0gMDsgaSA8IG47IGkrKykKICAgIAl7CiAgICAJCWJbaV0gPSAwOwoJCQlmb3IoaW50IGogPSAwOyBqIDwgbjsgaisrKQoJCQlpZih6W2ldW2pdIDwgMCkKCQkJewoJCQkJYltpXSA9IDE7CgkJCQlicmVhazsKCQkJCX0KCQkJfQoJCQlmb3IgKGludCBpID0gMDsgaSA8IG47IGkrKykKCQkJewoJCQkJU3lzdGVtLm91dC5wcmludGYoIiUuMWYgIixiW2ldKTsKCQkJfQoJCX0KfQ==