#include <bits/stdc++.h>
int main(void) {
  int sum, max = 0, count = 0;
  scanf("%d", &sum);
  int num[sum];
  for (int i = 1; i <= sum; i++) {
    scanf("%d ", &num[sum]);
    if (max <= sum) {
      max = sum;
    }
    if (num[i - i] <= num[i] && num[1] <= num[i] && max <= num[i]) {
      count++;
    };
  }
  return 0;
}
