Score : 400 points
You are given a sequence A_1, A_2, ..., A_N and an integer K.
Print the maximum possible length of a sequence B that satisfies the following conditions:
Input is given from Standard Input in the following format:
N K A_1 A_2 : A_N
Print the answer.
10 3 1 5 4 3 8 6 9 7 2 4
7
For example, B = (1, 4, 3, 6, 9, 7, 4) satisfies the conditions.