#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int max = 0;
  int ans = 0;
  vector<int> A(N);
  for (int i = 0; i < N; i++) cin >> A.at(i);
  for (int i = 0; i < N; i++) {
    if (max <= A.at(i)) {
      ans++;
      max = A.at(i);
    }
    cout << ans << endl;
  }
}
