You are given a sequence of length .
Print any longest strictly increasing subsequence of . A subsequence is obtained by deleting zero or more elements while preserving the order of the remaining elements.
The input is given in the following format:
For each case, print the length of a longest increasing subsequence on one line. On the next line, print the elements of such a subsequence separated by spaces.
If several longest increasing subsequences exist, you may print any of them.
Each case is given in the following format: