P8588 [HackerEarth] k distribution
普及
题目描述

You are given N positive integers A1, A2, ... AN. Find the number of ways to distribute them in 2 groups in such a way that sum of numbers in each group is greater or equal K. The answer can be large so output it modulo 10^9 + 7.

Input
The first line contains two space-separated integers N and K.
The second line contains N space-separated integers: A1, A2, ... AN.

Output
Output one integer - answer for the question modulo 10^9 + 7.

Constraints
0 < N ≤ 100
0 < Ai ≤ 10^9
0 < K ≤ 10^5
0 < N ≤ 20 in 28 % of the test data.

SAMPLE INPUT
2 5
6 6

SAMPLE OUTPUT
2

输入格式

见题面

输出格式

见题面

样例输入
2 5 6 6 SAMPLE
样例输出
2