n | | n | prev = None |
| | | current_length = 0 |
| max_length = 0 | | max_length = 0 |
n | current_length = 0 | n | |
| previous_num = None | | |
| while True: | | while True: |
n | num = int(input()) | n | n = int(input()) |
| if num == 0: | | if n == 0: |
| break | | break |
n | if previous_num is None or num >= previous_num: | n | if prev is None or n >= prev: |
| current_length += 1 | | current_length += 1 |
| else: | | else: |
| max_length = max(max_length, current_length) | | max_length = max(max_length, current_length) |
| current_length = 1 | | current_length = 1 |
t | previous_num = num | t | prev = n |
| max_length = max(max_length, current_length) | | max_length = max(max_length, current_length) |
| print(max_length) | | print(max_length) |