- Time limit: 1.00 s
- Memory limit: 512 MB
You are given an array of numbers. In how many ways can you choose a subset of the numbers with sum ?
Input
The first input line has two numbers and : the array size and the required sum.
The second line has integers : the numbers in the array.
Output
Print the number of ways you can create the sum .
Constraints
Example
Input:
4 5 1 2 3 2
Output:
3