#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int cnt[100], n, i, j, ans[100], x;
  bool used[100];
  cin >> n;
  memset(used, false, sizeof(used));
  for (i = 1; i <= n; i++) {
    memset(cnt, 0, sizeof(cnt));
    for (j = 1; j <= n; j++) {
      cin >> x;
      cnt[x]++;
    }
    for (j = 1; j <= n; j++) {
      if ((n - j == cnt[j]) && (!used[j])) {
        ans[i] = j;
        used[j] = true;
        break;
      }
    }
  }
  for (i = 1; i <= n; i++) cout << ans[i] << " ";
  cout << endl;
  return 0;
}
