#include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
	int N,i;
	cin>>N;
	int A,A0,No=1;
	cin>>A0;
	cout<<No<<endl;
	for (i=2;i<=N;i++){
		cin>>A;
		if (A>A0){
			No++;
		}
		cout<<No<<endl;
	}
	return 0;
}