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;

template <typename T> void chmin(T &x,const T &y)
{
	if(x>y)x=y;
}

#define rep(i,l,r) for(int i=l;i<=r;++i)
#define per(i,r,l) for(int i=r;i>=l;--i)

const int N=200+5,L=60,T=N*L,D=1e9+7;
const ll inf=1e18+5;
int n;
ll a[N];
struct State
{
ll a[N],l,r;
State () =default ;
State (ll *na,const ll &k)
{
	ll mn=na[1];
	rep(i,2,n)chmin(mn,na[i]);
	rep(i,1,n)a[i]=na[i]-mn;
	r=mn;l=max(0LL,mn-k);
}
};
bool operator <(const State &a,const State &b)
{
	rep(i,1,n)
	if(a.a[i]!=b.a[i])return a.a[i]<b.a[i];
	if(a.l!=b.l)return a.l<b.l;
	return a.r<b.r;
}
bool operator ==(const State &a,const State &b)
{
	rep(i,1,n)
	if(a.a[i]!=b.a[i])return 0;
	return 1;
}
vector<State>state;
pair<ll,int>q[N];
ll na[N];

ll min_cost(const ll &l,const ll &r)//x>=l,x<=r,min_number_of_1_of_x
{
	if(l>r)return inf;
	int ans=0;
	per(j,L-1,0)
	{
		if(((l>>j)&1)!=((r>>j)&1))
		{
			if(l&((1LL<<j)-1))++ans;
			break;
		}
		if((l>>j)&1)++ans;
	}
	return ans;
}
void check(const ll &k)
{
	if(k<0)return ;
	state.push_back(State(na,k));
}
namespace solve_state
{
int main()
{
	sort(state.begin(),state.end());
	ll ans=0;
	for(auto l=state.begin();l<state.end();)
	{
		auto r=l;
		ll nr=-1;
//		rep(i,1,n)cerr<<l->a[i]<<" ";cerr<<endl;
		while(r<state.end()&&*l==*r)
		{
//			cerr<<r->l<<" "<<r->r<<endl;
			if(r->l>nr)
			{
				(ans+=(r->r)-(r->l)+1)%=D;
				nr=r->r;
			}
			else
			if(r->r>nr)
			{
				(ans+=(r->r)-nr)%=D;
				nr=r->r;
			}
			++r;
		}
//		cerr<<ans<<endl;
		l=r;
	}
	return ans;
}
};

int main()
{
	//freopen("1.in","r",stdin);
	ll k;
	cin>>n>>k;
	rep(i,1,n)cin>>a[i];
	rep(j,0,L)
	{
		rep(i,1,n)q[i]=make_pair(a[i]&((1LL<<j)-1),i);
		sort(q+1,q+n+1);
		rep(i,1,n)na[i]=a[i]>>j;
		check(k-j-min_cost(0,q[1].first));
		q[n+1].first=(1LL<<j)-1;
		rep(i,1,n)
		{
			if(--na[q[i].second]<0)break;
			check(k-j-min_cost(q[i].first+1,q[i+1].first));
		}
	}
	cout<<solve_state::main()<<endl;
}