LearnPy Hub
← Arena
EasyRating 900

Longest Growing Days

A company's money on each day is given. Print the length of the longest stretch of days where the money never went down (each day ≥ the day before).

Input

n, then n integers.

Output

One integer.

Sample 1

Input
6
2 2 1 3 4 1
Output
3

Sample 2

Input
3
2 2 9
Output
3
solution.py
Output appears here
Longest Growing Days · Python Arena problem · LearnPy Hub