Read a positive natural number n followed by n integers forming a sequence v[1], v[2], ..., v[n]. A run of equal values is a contiguous portion of the sequence whose elements all share the same value.
Determine the length of the longest such run.