#include <bits/stdc++.h>
using namespace std;

using ll=long long;
#define int ll

#define FOR(i,a,b) for(int i=int(a);i<int(b);i++)
#define REP(i,b) FOR(i,0,b)

int read(){
	int i;
	scanf("%lld",&i);
	return i;
}

signed main(){
	// your code goes here
	int N = read();
	int a[N];
	int rank = 1;
	a[0] = read();
	cout << rank << endl;
	FOR(i,1,N){
		a[i] = read();
		if(a[0] < a[i]) rank++;
		cout << rank << endl;
	}
}