#include <iostream>
#include <vector>

using namespace std;

int main() {
  int count = 0;
  int c = 0;
  int p=0;
  for(int i=0;i<100;i++) {
    cin >> c;
    count += (c >= p)?1:0;
    if (c<p) break;
    pre = c;
  }
  cout << count;
  return 0;
}