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>
#define rep(i,n) for(int i=0;i<(int)n;i++)
#define all(c) (c).begin(),(c).end()
#define pb push_back
#define dbg(...) do{cerr<<__LINE__<<": ";dbgprint(#__VA_ARGS__, __VA_ARGS__);}while(0);

using namespace std;

namespace std{template<class S,class T>struct hash<pair<S,T>>{size_t operator()(const pair<S,T>&p)const{return ((size_t)1e9+7)*hash<S>()(p.first)+hash<T>()(p.second);}};template<class T>struct hash<vector<T>>{size_t operator()(const vector<T> &v)const{size_t h=0;for(auto i : v)h=h*((size_t)1e9+7)+hash<T>()(i)+1;return h;}};}
template<class T>ostream& operator<<(ostream &os, const vector<T> &v){os<<"[ ";rep(i,v.size())os<<v[i]<<(i==v.size()-1?" ]":", ");return os;}template<class T>ostream& operator<<(ostream &os,const set<T> &v){os<<"{ "; for(const auto &i:v)os<<i<<", ";return os<<"}";}
template<class T,class U>ostream& operator<<(ostream &os,const map<T,U> &v){os<<"{";for(const auto &i:v)os<<" "<<i.first<<": "<<i.second<<",";return os<<"}";}template<class T,class U>ostream& operator<<(ostream &os,const pair<T,U> &p){return os<<"("<<p.first<<", "<<p.second<<")";}
void dbgprint(const string &fmt){cerr<<endl;}template<class H,class... T>void dbgprint(const string &fmt,const H &h,const T&... r){cerr<<fmt.substr(0,fmt.find(","))<<"= "<<h<<" ";dbgprint(fmt.substr(fmt.find(",")+1),r...);}
typedef long long ll;typedef vector<int> vi;typedef pair<int,int> pi;const int inf = (int)1e9;const double INF = 1e12, EPS = 1e-9;

const int mod = 1e9 + 7;

int main(){
	cin.tie(0); cin.sync_with_stdio(0);
	int n; ll k; cin >> n >> k;
	vector<ll> v(n);
	rep(i, n) cin >> v[i];
	sort(all(v)); v.erase(unique(all(v)), v.end());
	
	ll ans = 0;
	set<vector<ll>> vis;
	map<vector<ll>, vector<pair<vector<ll>, ll>>> bucket;
	
	priority_queue<pair<int, vector<ll>>> q;
	q.emplace(0, v);
	
	while(!q.empty()){
		v = q.top().second;
		int c = -q.top().first; q.pop();
		if(vis.count(v)) continue;
		vis.insert(v);
		
		//dbg(c, v);
		vector<ll> diff;
		rep(i, v.size() - 1) diff.pb(v[i + 1] - v[i]);
		bucket[diff].emplace_back(v, k - c);
		
		if(v[0] > 0 && c + 2 <= k){
			vector<ll> nv;
			for(ll i : v) nv.pb((i - 1) / 2);
			if(!vis.count(nv)) q.emplace(-c - 2, nv);
		}
		if(c + 1 <= k){
			vector<ll> nv;
			for(ll i : v) nv.pb(i / 2);
			if(!vis.count(nv)) q.emplace(-c - 1, nv);
		}
	}
	
	for(auto it : bucket){
		vector<pair<vector<ll>, ll>> &v = it.second;
		sort(all(v)); reverse(all(v));
		//dbg(v);
		ll mn = 1e18;
		rep(i, v.size()){
			ll rem = v[i].second, fst = v[i].first[0];
			mn = min(mn, fst - rem - 1);
			ll nxt = i + 1 < v.size() ? v[i + 1].first[0] : -1;
			
			ans += fst - max(nxt, mn);
			ans %= mod;
		}
	}
	
	cout << ans % mod << endl;
	return 0;
}