#include <bits/stdc++.h>
using namespace std;
int a[105];
int main() {
  int N, i, sum = 1;
  cin >> N;
  for (i = 1; i <= N; i++) {
    cin >> a[i];
    if (i != 1) {
      if (a[i] >= a[i - 1])
        sum++;
      else
        a[i] = a[i - 1];
    }
  }
  return 0;
}
