Given an array of integers, print the number of different subsets such that no two subsets have identical contents, and that every subset does not contain duplicate elements. Since this number can be very large, print it modulo . Note that the empty subset is counted.
Input Specification
The first line will contain the integer , the number of integers.
The next line will contain integers , the array.
Output Specification
Print the answer modulo .
Subtasks
Subtask 1 [40%]
Subtask 2 [60%]
No further constraints.
Sample Input
4
1 2 2 3
Sample Output
8
Comments