import java.util.*;
public class Main
{
public static void main
(String[] args
)
{
Scanner in
= new Scanner
(System.
in); int n = in.nextInt();
int deg[] = new int[n];
for(int i = 0; i < n; i++)
{
for(int j = 0; j < n; j++)
{
int value = in.nextInt();
if (value == 1)
{
deg[i]++;
}
}
}
for(int i = 0; i < n; i++)
{
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwpwdWJsaWMgY2xhc3MgTWFpbgp7CiAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykKCiAgewogICAgU2Nhbm5lciBpbiA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CiAgICBpbnQgbiA9IGluLm5leHRJbnQoKTsKICAgIGludCBkZWdbXSA9IG5ldyBpbnRbbl07CiAgICBmb3IoaW50IGkgPSAwOyBpIDwgbjsgaSsrKQogICAgewogICAgCWZvcihpbnQgaiA9IDA7IGogPCBuOyBqKyspCgoJCSB7CgkJCWludCB2YWx1ZSA9IGluLm5leHRJbnQoKTsKCQkJaWYgKHZhbHVlID09IDEpCiAgICAJCXsKICAgIAkJCWRlZ1tpXSsrOwogICAgCQl9CgkJIH0KICAgIH0KICAgIGZvcihpbnQgaSA9IDA7IGkgPCBuOyBpKyspCiAgICB7CiAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihkZWdbaV0pOyAgICAgCiAgICB9CiAgfQp9ICA=