import java.math.BigInteger; import java.util.Scanner; import java.io.*; class codesprint1 { static long longestSequence(long[] a) { long sum=0; for(int j=0;j 2) sum+=1; } return sum; } public static void main(String[] args)throws IOException { BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(in.readLine()); String st[]=in.readLine().split(" "); long[] a = new long[n]; for(int a_i = 0; a_i < n; a_i++){ a[a_i] = Long.parseLong(st[a_i]); } long result = longestSequence(a); System.out.println(result); in.close(); } }