Problem: There are N non-negative integers written on the blackboard: A_1, ..., A_N.

Snuke can perform the following two operations at most K times in total in any order:

* Operation A: Replace each integer X on the blackboard with X divided by 2, rounded down to the nearest integer.
* Operation B: Replace each integer X on the blackboard with X minus 1. This operation cannot be performed if one or more 0s are written on the blackboard.



Find the number of the different possible combinations of integers written on the blackboard after Snuke performs the operations, modulo 1,000,000,007.

Constraints

* 1 \leq N \leq 200
* 1 \leq A_i \leq 10^{18}
* 1 \leq K \leq 10^{18}
* A_i and K are integers.

Input

Input is given from Standard Input in the following format:


N K
A_1 A_2 ... A_N


Output

Print the number of the different possible combinations of integers written on the blackboard after Snuke performs the operations, modulo 1,000,000,007.

Examples

Input

2 2
5 7


Output

6


Input

3 4
10 13 22


Output

20


Input

1 100
10


Output

11


Input

10 123456789012345678
228344079825412349 478465001534875275 398048921164061989 329102208281783917 779698519704384319 617456682030809556 561259383338846380 254083246422083141 458181156833851984 502254767369499613


Output

164286011

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pp;
typedef pair<ll,ll> pll;
void read(int& x){ scanf("%d",&x); }
void read(ll& x){ scanf("%lld",&x); }
template<typename T,typename... Args>
void read(T& a,Args&... b){ read(a); read(b...); }
#define all(x) (x).begin(),(x).end()
#define pb push_back
#define eb emplace_back
#define x first
#define y second

typedef vector<ll> V;

map<V, set<pll>> state;

int n;

void Try(V& v, ll nokori){
	V diff(n-1);
	for(int i=1; i<n; ++i) diff[i-1]=v[i]-v[0];
	set<pll>& s = state[diff];
	
	pll key{v[0], nokori-v[0]};
	
	auto it = s.lower_bound(key);
	if(it != s.end() && key.x <= it->x && key.y <= it->y)
		return;
	
	s.insert(key);
	
	if(nokori >= 1){
		diff = v; // reuse
		for(ll& x:diff) x>>=1;
		Try(diff, nokori-1);
	}
	
	if(nokori >= 2){
		diff = v; // reuse
		bool flg = 1;
		for(ll& x:diff){
			if(x == 0){
				flg = 0;
				break;
			}
			x=((x-1)>>1);
		}
		if(flg){
			Try(diff, nokori-2);
		}
	}
}

int main()
{
	ll k;
	read(n, k);
	V a; a.resize(n); for(ll& x:a) read(x);
	Try(a, k);
	
	ll ans = 0;
	const ll M = int(1e9) + 7;
	
	for(auto& P:state){
		const V& dfv=P.x;
		set<pll>& pts=P.y;
		
		ll md = 0;
		if(dfv.size()) md=min(0ll, *min_element(all(dfv)));
		
		map<ll, int> rng;
		for(const pll& pt:pts){
			ll a0 = pt.x;
			ll r = pt.x + pt.y;
			ll mina0 = max(-md, a0-r);
			++rng[mina0];
			--rng[a0+1];
		}
		
		int lev = 0;
		ll lst = -1;
		for(auto& tmp : rng){
			if(lev == 0) lst = tmp.x;
			lev += tmp.y;
			if(lev == 0){
				ans += (tmp.x - lst);
				ans %= M;
			}
		}
	}
	
	printf("%lld\n", ans);
	return 0;
}