#include <bits/stdc++.h>
const int inf = (int)1e9;
using namespace std;
int a[111][111];
int f[111][111];
int ans[111];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      cin >> a[i][j];
    }
  }
  for (int k = 1; k < n; k++) {
    for (int i = 1; i <= n; i++) {
      int h = 0;
      for (int j = 1; j <= n; j++) {
        if (a[i][j] == k) {
          h++;
        }
      }
      if (h == n - k) {
        ans[i] = k;
        break;
      }
    }
  }
  for (int i = 1; i <= n; i++) {
    if (!ans[i]) {
      cout << n << " ";
    } else {
      cout << ans[i] << " ";
    }
  }
  return 0;
}
