import java.util.*;
class Main{
public static void main(String[] args) {
Scanner in =new Scanner(System.in);
int n=in.nextInt();
int a[]=new int [n+1];
int f[]=new int [n+1];
for(int i=1;i<=n;i) {
a[i]=in.nextInt();
f[i]=1;
}
for(int i=2;i<=n;i) {
for(int j=1;j[HTML_REMOVED]ans) {
ans=f[i];
}
}
System.out.println(ans);
}
}