Given a sequence, find the length of the longest strictly increasing subsequence.
The first line contains the length (1 \leq n \leq 1000) of the sequence. The second line contains the sequence. Each number in the sequence is an integer whose absolute value does not exceed 10^4.
Print the length of the longest strictly increasing subsequence.
Example 1