import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    String[] str = in.readLine().split(" ");
    int[] h = new int[n];
    int cnt = n;
    
    for(int i=0; i<n; i++) {
      h[i] = Integer.parseInt(str[i]);
     }
    for(int i=1; i<n; i++) {
      int tmp_cnt = 0;
      for(int j=0; j<i; j++) {
        if(h[i]<h[j])
          tmp_cnt += 1;
      }
      if(tmp_cnt>0){
        cnt -= 1;
      }
    }
    
    System.out.println(cnt);
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    String[] str = in.readLine().split(" ");
    int[] h = new int[n];
    int cnt = n;
    
    for(int i=0; i<n; i++) {
      h[i] = Integer.parseInt(str[i]);
     }
    for(int i=1; i<n; i++) {
      int tmp_cnt = 0;
      for(int j=0; j<i; j++) {
        if(h[i]<h[j])
          tmp_cnt += 1;
      }
      if(tmp_cnt>0){
        cnt -= 1;
      }
    }
    
    System.out.println(cnt);
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    String[] str = in.readLine().split(" ");
    int[] h = new int[n];
    int cnt = n;
    
    for(int i=0; i<n; i++) {
      h[i] = Integer.parseInt(str[i]);
     }
    for(int i=1; i<n; i++) {
      int tmp_cnt = 0;
      for(int j=0; j<i; j++) {
        if(h[i]<h[j])
          tmp_cnt += 1;
      }
      if(tmp_cnt>0){
        cnt -= 1;
      }
    }
    
    System.out.println(cnt);
  } main {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    String[] str = in.readLine().split(" ");
    int[] h = new int[n];
    int cnt = n;
    
    for(int i=0; i<n; i++) {
      h[i] = Integer.parseInt(str[i]);
     }
    for(int i=1; i<n; i++) {
      int tmp_cnt = 0;
      for(int j=0; j<i; j++) {
        if(h[i]<h[j])
          tmp_cnt += 1;
      }
      if(tmp_cnt>0){
        cnt -= 1;
      }
    }
    
    System.out.println(cnt);
  } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(in.readLine()); n Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in String[] str = in.readLine().split(" "); str in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int[] h = new int[n]; h new int[n] n int cnt = n; cnt n for(int i=0; i<n; i++) {
      h[i] = Integer.parseInt(str[i]);
     } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      h[i] = Integer.parseInt(str[i]);
     } {
      h[i] = Integer.parseInt(str[i]);
     } h[i] = Integer.parseInt(str[i]) h[i] h i Integer.parseInt(str[i]) Integer.parseInt Integer str[i] str i for(int i=1; i<n; i++) {
      int tmp_cnt = 0;
      for(int j=0; j<i; j++) {
        if(h[i]<h[j])
          tmp_cnt += 1;
      }
      if(tmp_cnt>0){
        cnt -= 1;
      }
    } int i=1; int i=1; i 1 i<n i n i++ i++ i {
      int tmp_cnt = 0;
      for(int j=0; j<i; j++) {
        if(h[i]<h[j])
          tmp_cnt += 1;
      }
      if(tmp_cnt>0){
        cnt -= 1;
      }
    } {
      int tmp_cnt = 0;
      for(int j=0; j<i; j++) {
        if(h[i]<h[j])
          tmp_cnt += 1;
      }
      if(tmp_cnt>0){
        cnt -= 1;
      }
    } int tmp_cnt = 0; tmp_cnt 0 for(int j=0; j<i; j++) {
        if(h[i]<h[j])
          tmp_cnt += 1;
      } int j=0; int j=0; j 0 j<i j i j++ j++ j {
        if(h[i]<h[j])
          tmp_cnt += 1;
      } {
        if(h[i]<h[j])
          tmp_cnt += 1;
      } if(h[i]<h[j])
          tmp_cnt += 1; h[i]<h[j] h[i] h i h[j] h j tmp_cnt += 1 tmp_cnt 1 if(tmp_cnt>0){
        cnt -= 1;
      } tmp_cnt>0 tmp_cnt 0 {
        cnt -= 1;
      } cnt -= 1 cnt 1 System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    String[] str = in.readLine().split(" ");
    int[] h = new int[n];
    int cnt = n;
    
    for(int i=0; i<n; i++) {
      h[i] = Integer.parseInt(str[i]);
     }
    for(int i=1; i<n; i++) {
      int tmp_cnt = 0;
      for(int j=0; j<i; j++) {
        if(h[i]<h[j])
          tmp_cnt += 1;
      }
      if(tmp_cnt>0){
        cnt -= 1;
      }
    }
    
    System.out.println(cnt);
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    String[] str = in.readLine().split(" ");
    int[] h = new int[n];
    int cnt = n;
    
    for(int i=0; i<n; i++) {
      h[i] = Integer.parseInt(str[i]);
     }
    for(int i=1; i<n; i++) {
      int tmp_cnt = 0;
      for(int j=0; j<i; j++) {
        if(h[i]<h[j])
          tmp_cnt += 1;
      }
      if(tmp_cnt>0){
        cnt -= 1;
      }
    }
    
    System.out.println(cnt);
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    String[] str = in.readLine().split(" ");
    int[] h = new int[n];
    int cnt = n;
    
    for(int i=0; i<n; i++) {
      h[i] = Integer.parseInt(str[i]);
     }
    for(int i=1; i<n; i++) {
      int tmp_cnt = 0;
      for(int j=0; j<i; j++) {
        if(h[i]<h[j])
          tmp_cnt += 1;
      }
      if(tmp_cnt>0){
        cnt -= 1;
      }
    }
    
    System.out.println(cnt);
  }
}