#include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
int M[n][n];
vector<int> v;
for (int i=0; i<n; i++)
{
for (int j=0; j<n; j++)
{
cin >> M[i][j];
}
}
for (int i=0; i<n; i++)
{
int k=0;
for (int j=0; (j<n)&&(M[i][j]==0); j++)
{
k++;
}
if(k==n)
{
v.push_back(i);
}
}
for (int i : v)
{
cout << i+1 << " ";
}
if (v.empty())
{
cout << "Таких строк нет." << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbjsKCWNpbiA+PiBuOwoJaW50IE1bbl1bbl07Cgl2ZWN0b3I8aW50PiB2OwoJZm9yIChpbnQgaT0wOyBpPG47IGkrKykKCXsKCQlmb3IgKGludCBqPTA7IGo8bjsgaisrKQoJCXsKCQkJY2luID4+IE1baV1bal07CgkJfQoJfQoJZm9yIChpbnQgaT0wOyBpPG47IGkrKykKCXsKCQlpbnQgaz0wOwoJCWZvciAoaW50IGo9MDsgKGo8bikmJihNW2ldW2pdPT0wKTsgaisrKQoJCXsKCQkJaysrOwoJCX0KCQlpZihrPT1uKQoJCXsKCQkJdi5wdXNoX2JhY2soaSk7CgkJfQoJfQoJZm9yIChpbnQgaSA6IHYpCgl7CgkJY291dCA8PCBpKzEgPDwgIiAiOwoJfQoJaWYgKHYuZW1wdHkoKSkgCgl7CgkJY291dCA8PCAi0KLQsNC60LjRhSDRgdGC0YDQvtC6INC90LXRgi4iIDw8IGVuZGw7Cgl9CglyZXR1cm4gMDsKfQ==