unittest
{
	assert( [ "5", "10 4 8 7 3" ].parse.expand.solve == 2 );
	assert( [ "7", "4 4 5 6 6 5 5" ].parse.expand.solve == 3 );
	assert( [ "4", "1 2 3 4" ].parse.expand.solve == 0 );
}



import std.conv;
import std.range;
import std.stdio;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	input.popFront;
	auto hs = input.front.split.to!( long[] );
	return tuple( hs );
}

auto solve( long[] hs )
{
	auto ans = 0L;
	auto c = 0L;
	auto p = 0L;
	foreach( h; hs )
	{
		if( h <= p ) c++;
		else         c = 0;
		if( ans < c ) ans = c;
		p = h;
	}
	return ans;
}
