Given a sequence of integer numbers , and an integer number , let be the maximum length of all the subsequences made up of only . That is, is the maximum number of times that appears consecutively in the sequence (or zero, if is not there). Given several , can you compute each ?
Input consists of several cases. Every case begins with , followed by , followed by a natural number , followed by different integer numbers about which you are asked.
For every case, print a line with the answers separated with spaces.
Input
9 -10 30 30 -10 -10 -10 25 25 30 3 -10 20 30 10 1 1 -4 -4 -4 6 8 8 8 8 5 8 6 5 1 -4 15 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 2 7 8
Output
3 0 2 4 1 0 2 3 15 0