Given a sequence of integers, your task is to determine the number of strictly increasing subsequences within this sequence. The result should be presented modulo .
The first line of the input contains the integer . The second line contains integers, which are the elements of the sequence, separated by spaces. Here, 0 < N \le 11000, and each integer in the sequence does not exceed 10^5 in absolute value.
Output a single line with the answer to the problem.
Example 1