#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", &n);
  int i, j, h[n], ans = 1, max = 0, pla, flag = 1;
  for ((i) = (0); (i) < (n); (i)++) {
    scanf("%d", &h[i]);
    if (max <= h[i]) {
      max = h[i];
      pla = i;
    }
  }
  if (pla != 0) {
    for (j = pla - 1; j > 0; j--) {
      for (i = j - 1; i >= 0; i--) {
        if (h[i] <= h[j])
          flag *= 1;
        else
          flag *= 0;
      }
      if (flag == 1) ans++;
      flag = 1;
      printf("%d\n", ans);
    }
  }
  if (pla != 0)
    printf("%d", ans + 1);
  else
    printf("%d", ans);
}
