← Problem book: Python Lesson 56 of 96 · 15 XP

Longest run

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

The first line contains the count of numbers n (n ≥ 1), the second — the n integers themselves, separated by spaces.

Print the length of the longest run of consecutive equal numbers.

Example

Input:

7
1 1 2 2 2 3 3

Output:

3

Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.