#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, k, a[100][100], z, p;
  int arr[100] = {0};
  cin >> n;
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= n; j++) {
      cin >> a[i][j];
    }
  }
  for (k = 1; k < n; k++) {
    for (i = 1; i <= n; i++) {
      p = 0;
      for (j = 1; j <= n; j++) {
        if (a[i][j] == k) p++;
      }
      if (p == (n - k)) {
        arr[i] = k;
        break;
      }
    }
  }
  z = n;
  for (i = 1; i <= n; i++) {
    if (arr[i] == 0) {
      arr[i] = z++;
    }
    cout << arr[i] << " ";
  }
  return 0;
}
