#include <bits/stdc++.h>
int main() {
  int N, H[20], cnt = 1, n;
  scanf("%d", &N);
  for (int i = 1; i <= N; i++) {
    scanf("%d", &H[i]);
  }
  for (int i = 2; i <= N; i++) {
    n = 0;
    for (int j = 1; j <= i - 1; j++) {
      if (H[j] <= H[i]) {
        n = 1;
      }
      cnt += n;
    }
  }
  printf("%d", cnt);
}
