#include using namespace std; #define REP(i,n) for(int i=0; i<(int)(n); i++) int main() { ios_base::sync_with_stdio(0); cin.tie(0); int n, a; cin >> n >> a; int pos = 1; cout << pos << endl; REP (i, n-1) { int b; cin >> b; if (b > a) ++pos; cout << pos << endl; } return 0; }