#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, h[100], count = 1, k = 0;
  cin >> n;
  for (int i = 1; i < n; i++) {
    if (h[k] == h[i]) {
      count++;
    }
    if (h[k] < h[i]) {
      count++;
      k = i;
    }
  }
  cout << count << endl;
}
