The lonely M is again playing with his array (as playing with his array is the only choice), he wants to choose a subsequence of array like that .
What is the maximum length of subsequence that M can choose which satisfies above condition?
Subsequence of an array can be obtained by erasing some (possibly zero) elements from the array. You can erase any elements, not necessarily going successively. The remaining elements preserve their order.
Input
First line contains only , length of array.
Second line contains the array elements separated by space.
Output
The only line of output contains an integer, the maximum length of subsequence that M can choose.
c can choose subseqence .