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

public class Main {
	public static void main(String srgs[]) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try {
			int N = Integer.parseInt(reader.readLine());
			String[] str = reader.readLine().split(" ");
			int[] H = new int[N+1];
			H[0] = Integer.parseInt(str[0]);
			int j = 0;
			int tmpcount = 0;
			int maxcount = 0;
			for(int i=1;i<N+1;i++) {
				if(i==N) {
					H[i] = H[i-1] + 1;
				}else {
					H[i] = Integer.parseInt(str[i]);					
				}
				if(H[i]>H[i-1]) {
					tmpcount = i - j - 1;
					if(tmpcount > maxcount) {
						maxcount = tmpcount;
					}
					j = i;
				}
				
			}
									
			System.out.println(maxcount);

		} catch (IOException e) {
			e.printStackTrace();
		}
	}

} import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.BufferedReader; BufferedReader java.io public class Main {
	public static void main(String srgs[]) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try {
			int N = Integer.parseInt(reader.readLine());
			String[] str = reader.readLine().split(" ");
			int[] H = new int[N+1];
			H[0] = Integer.parseInt(str[0]);
			int j = 0;
			int tmpcount = 0;
			int maxcount = 0;
			for(int i=1;i<N+1;i++) {
				if(i==N) {
					H[i] = H[i-1] + 1;
				}else {
					H[i] = Integer.parseInt(str[i]);					
				}
				if(H[i]>H[i-1]) {
					tmpcount = i - j - 1;
					if(tmpcount > maxcount) {
						maxcount = tmpcount;
					}
					j = i;
				}
				
			}
									
			System.out.println(maxcount);

		} catch (IOException e) {
			e.printStackTrace();
		}
	}

} Main public static void main(String srgs[]) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try {
			int N = Integer.parseInt(reader.readLine());
			String[] str = reader.readLine().split(" ");
			int[] H = new int[N+1];
			H[0] = Integer.parseInt(str[0]);
			int j = 0;
			int tmpcount = 0;
			int maxcount = 0;
			for(int i=1;i<N+1;i++) {
				if(i==N) {
					H[i] = H[i-1] + 1;
				}else {
					H[i] = Integer.parseInt(str[i]);					
				}
				if(H[i]>H[i-1]) {
					tmpcount = i - j - 1;
					if(tmpcount > maxcount) {
						maxcount = tmpcount;
					}
					j = i;
				}
				
			}
									
			System.out.println(maxcount);

		} catch (IOException e) {
			e.printStackTrace();
		}
	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try {
			int N = Integer.parseInt(reader.readLine());
			String[] str = reader.readLine().split(" ");
			int[] H = new int[N+1];
			H[0] = Integer.parseInt(str[0]);
			int j = 0;
			int tmpcount = 0;
			int maxcount = 0;
			for(int i=1;i<N+1;i++) {
				if(i==N) {
					H[i] = H[i-1] + 1;
				}else {
					H[i] = Integer.parseInt(str[i]);					
				}
				if(H[i]>H[i-1]) {
					tmpcount = i - j - 1;
					if(tmpcount > maxcount) {
						maxcount = tmpcount;
					}
					j = i;
				}
				
			}
									
			System.out.println(maxcount);

		} catch (IOException e) {
			e.printStackTrace();
		}
	} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) try {
			int N = Integer.parseInt(reader.readLine());
			String[] str = reader.readLine().split(" ");
			int[] H = new int[N+1];
			H[0] = Integer.parseInt(str[0]);
			int j = 0;
			int tmpcount = 0;
			int maxcount = 0;
			for(int i=1;i<N+1;i++) {
				if(i==N) {
					H[i] = H[i-1] + 1;
				}else {
					H[i] = Integer.parseInt(str[i]);					
				}
				if(H[i]>H[i-1]) {
					tmpcount = i - j - 1;
					if(tmpcount > maxcount) {
						maxcount = tmpcount;
					}
					j = i;
				}
				
			}
									
			System.out.println(maxcount);

		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			int N = Integer.parseInt(reader.readLine());
			String[] str = reader.readLine().split(" ");
			int[] H = new int[N+1];
			H[0] = Integer.parseInt(str[0]);
			int j = 0;
			int tmpcount = 0;
			int maxcount = 0;
			for(int i=1;i<N+1;i++) {
				if(i==N) {
					H[i] = H[i-1] + 1;
				}else {
					H[i] = Integer.parseInt(str[i]);					
				}
				if(H[i]>H[i-1]) {
					tmpcount = i - j - 1;
					if(tmpcount > maxcount) {
						maxcount = tmpcount;
					}
					j = i;
				}
				
			}
									
			System.out.println(maxcount);

		} int N = Integer.parseInt(reader.readLine()); N Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader String[] str = reader.readLine().split(" "); str reader.readLine().split(" ") reader.readLine().split reader.readLine() reader.readLine reader " " int[] H = new int[N+1]; H new int[N+1] N+1 N 1 H[0] = Integer.parseInt(str[0]) H[0] H 0 Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int j = 0; j 0 int tmpcount = 0; tmpcount 0 int maxcount = 0; maxcount 0 for(int i=1;i<N+1;i++) {
				if(i==N) {
					H[i] = H[i-1] + 1;
				}else {
					H[i] = Integer.parseInt(str[i]);					
				}
				if(H[i]>H[i-1]) {
					tmpcount = i - j - 1;
					if(tmpcount > maxcount) {
						maxcount = tmpcount;
					}
					j = i;
				}
				
			} int i=1; int i=1; i 1 i<N+1 i N+1 N 1 i++ i++ i {
				if(i==N) {
					H[i] = H[i-1] + 1;
				}else {
					H[i] = Integer.parseInt(str[i]);					
				}
				if(H[i]>H[i-1]) {
					tmpcount = i - j - 1;
					if(tmpcount > maxcount) {
						maxcount = tmpcount;
					}
					j = i;
				}
				
			} {
				if(i==N) {
					H[i] = H[i-1] + 1;
				}else {
					H[i] = Integer.parseInt(str[i]);					
				}
				if(H[i]>H[i-1]) {
					tmpcount = i - j - 1;
					if(tmpcount > maxcount) {
						maxcount = tmpcount;
					}
					j = i;
				}
				
			} if(i==N) {
					H[i] = H[i-1] + 1;
				}else {
					H[i] = Integer.parseInt(str[i]);					
				} i==N i N {
					H[i] = H[i-1] + 1;
				} H[i] = H[i-1] + 1 H[i] H i H[i-1] + 1 H[i-1] H i-1 i 1 1 {
					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 if(H[i]>H[i-1]) {
					tmpcount = i - j - 1;
					if(tmpcount > maxcount) {
						maxcount = tmpcount;
					}
					j = i;
				} H[i]>H[i-1] H[i] H i H[i-1] H i-1 i 1 {
					tmpcount = i - j - 1;
					if(tmpcount > maxcount) {
						maxcount = tmpcount;
					}
					j = i;
				} tmpcount = i - j - 1 tmpcount i - j - 1 i - j - 1 i j 1 if(tmpcount > maxcount) {
						maxcount = tmpcount;
					} tmpcount > maxcount tmpcount maxcount {
						maxcount = tmpcount;
					} maxcount = tmpcount maxcount tmpcount j = i j i System.out.println(maxcount) System.out.println System.out System System.out maxcount String srgs[] srgs public class Main {
	public static void main(String srgs[]) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try {
			int N = Integer.parseInt(reader.readLine());
			String[] str = reader.readLine().split(" ");
			int[] H = new int[N+1];
			H[0] = Integer.parseInt(str[0]);
			int j = 0;
			int tmpcount = 0;
			int maxcount = 0;
			for(int i=1;i<N+1;i++) {
				if(i==N) {
					H[i] = H[i-1] + 1;
				}else {
					H[i] = Integer.parseInt(str[i]);					
				}
				if(H[i]>H[i-1]) {
					tmpcount = i - j - 1;
					if(tmpcount > maxcount) {
						maxcount = tmpcount;
					}
					j = i;
				}
				
			}
									
			System.out.println(maxcount);

		} catch (IOException e) {
			e.printStackTrace();
		}
	}

} public class Main {
	public static void main(String srgs[]) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try {
			int N = Integer.parseInt(reader.readLine());
			String[] str = reader.readLine().split(" ");
			int[] H = new int[N+1];
			H[0] = Integer.parseInt(str[0]);
			int j = 0;
			int tmpcount = 0;
			int maxcount = 0;
			for(int i=1;i<N+1;i++) {
				if(i==N) {
					H[i] = H[i-1] + 1;
				}else {
					H[i] = Integer.parseInt(str[i]);					
				}
				if(H[i]>H[i-1]) {
					tmpcount = i - j - 1;
					if(tmpcount > maxcount) {
						maxcount = tmpcount;
					}
					j = i;
				}
				
			}
									
			System.out.println(maxcount);

		} catch (IOException e) {
			e.printStackTrace();
		}
	}

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

public class Main {
	public static void main(String srgs[]) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try {
			int N = Integer.parseInt(reader.readLine());
			String[] str = reader.readLine().split(" ");
			int[] H = new int[N+1];
			H[0] = Integer.parseInt(str[0]);
			int j = 0;
			int tmpcount = 0;
			int maxcount = 0;
			for(int i=1;i<N+1;i++) {
				if(i==N) {
					H[i] = H[i-1] + 1;
				}else {
					H[i] = Integer.parseInt(str[i]);					
				}
				if(H[i]>H[i-1]) {
					tmpcount = i - j - 1;
					if(tmpcount > maxcount) {
						maxcount = tmpcount;
					}
					j = i;
				}
				
			}
									
			System.out.println(maxcount);

		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
