Codeforces Round 321 (Div. 2) |
---|

Finished |

Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

brute force

dp

implementation

*900

No tag edit access

The problem statement has recently been changed. View the changes.

×
A. Kefa and First Steps

time limit per test

2 secondsmemory limit per test

256 megabytesinput

standard inputoutput

standard outputKefa decided to make some money doing business on the Internet for exactly *n* days. He knows that on the *i*-th day (1 ≤ *i* ≤ *n*) he makes *a*_{i} money. Kefa loves progress, that's why he wants to know the length of the maximum non-decreasing subsegment in sequence *a*_{i}. Let us remind you that the subsegment of the sequence is its continuous fragment. A subsegment of numbers is called non-decreasing if all numbers in it follow in the non-decreasing order.

Help Kefa cope with this task!

Input

The first line contains integer *n* (1 ≤ *n* ≤ 10^{5}).

The second line contains *n* integers *a*_{1}, *a*_{2}, ..., *a*_{n} (1 ≤ *a*_{i} ≤ 10^{9}).

Output

Print a single integer — the length of the maximum non-decreasing subsegment of sequence *a*.

Examples

Input

6

2 2 1 3 4 1

Output

3

Input

3

2 2 9

Output

3

Note

In the first test the maximum non-decreasing subsegment is the numbers from the third to the fifth one.

In the second test the maximum non-decreasing subsegment is the numbers from the first to the third one.

Codeforces (c) Copyright 2010-2024 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Feb/28/2024 23:26:25 (j1).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|