#include <bits/stdc++.h>
int main() {
  int a;
  int b[20];
  int cnt, before;
  scanf("%d", &a);
  for (int i = 0; i < a; i++) {
    scanf("%d", &b[i]);
  }
  cnt = 1;
  before = b[0];
  for (int i = 1; i < a; i++) {
    if (before < b[i]) {
      cnt++;
    }
    before == b[i];
  }
  return 0;
}
