Longest Bicolored Sequence
Given the stripe cells. Each cell is colored by one of colors. The cells are enumerated from leftmost to rightmost one by sequential integers between and , inclusively.
Your task is to find the longest continuous sequence of the cells such that total number of colors in that sequence does not exceed . If there are more than one longest sequence, print the leftmost of them.
Input
The first line contains one integer — the length of the stripe. The second line contains integers — the colors of the cells, listed from leftmost one to rightmost one. The cells of the same color are denoted by the same integer, the cells that have distinct colors — by different integers.
Output
Print two integers — the number of the cell where the longest continuous sequence that contains the cells of no more than two colors starts, and the length of this sequence. If there are more than one solutions, print one with the smallest first value (i.e. the leftmost one).