#include <bits/stdc++.h>
using namespace std;
int a[55][55], ans[55];
int main() {
  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++) {
    int cnt, tmp = n - k;
    for (int i = 1; i <= n; i++) {
      if (ans[i] == 0) {
        int cnt = 0;
        for (int j = 1; j <= n; j++)
          if (a[i][j] == k) cnt++;
        if (cnt == tmp) {
          ans[i] = k;
          break;
        }
      }
    }
  }
  for (int i = 1; i <= n; i++)
    if (ans[i])
      cout << ans[i] << ' ';
    else
      cout << n << ' ';
  cout << "\n";
  return 0;
}
