Given an unsorted array of integers, find the length of the longest run of consecutive integers that all appear in the array (order and duplicates in the array do not matter).
Input format
Line 1: an integer n.
Line 2: n space-separated integers (present whenever n >= 1).
Output format
One line: the length of the longest consecutive integer run.
Constraints
- 1 <= n <= 100000
- -1000000000 <= each value <= 1000000000