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, l, r) for(int i = (l), i##end = (r);i <= i##end;++i)
#define popc __builtin_popcountll
using std::cin; using std::cout;
const int maxn = 200200;
typedef long long ll;
const int mod = 1e9 + 7;
inline ll pow(ll a,int b,int ans = 1) {
	for(;b;b >>= 1,a = a * a % mod) if(b & 1)
		ans = ans * a % mod;
	return ans;
}
inline ll inverse(int x){ return pow(x, mod - 2); }
inline ll min(ll x, ll y) {
	return popc(x) < popc(y) ? x : y;
}
inline ll minpop(ll ql, ll qr, ll l = 0, ll r = (1ll << 60) - 1){
	if(ql <= l && r <= qr) return l;
	ll mid = l + r >> 1; ll ans = ql;
	if(ql <= mid) ans = min(ans, minpop(ql, qr, l, mid));
	if(mid < qr) ans = min(ans, minpop(ql, qr, mid + 1, r));
	return ans;
}
int n;
ll a[maxn], b[maxn], k;
std::map<std::vector<ll>, std::vector<std::pair<ll, ll>>> map;
inline void solve(int div, ll dec) {
	std::vector<ll> v(n);
	for(int i = 0;i < n;++i) {
		b[i] = a[i] - dec >> div;
		v[i] = b[i] - b[0];
	}
	if(b[0] >= 0) {
		ll rem_bit = k - div - popc(dec);
		if(rem_bit < 0) {
			return ;
		}
		map[v].emplace_back(std::max<ll>(0, b[0] - rem_bit), b[0]);
	}
}
int main() {
	std::ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
	cin >> n >> k;
	for(int i = 0;i < n;++i) {
		cin >> a[i];
	}
	std::sort(a, a + n);
	solve(0, 0);
	for(int x = 1;x <= k && x <= 60;++x) {
		std::vector<ll> v(a, a + n);
		for(ll & i : v) {
			i &= (1ll << x) - 1;
		}
		v.push_back(-1);
		v.push_back((1ll << x) - 1);
		sort(v.begin(), v.end());
		v.erase(unique(v.begin(), v.end()), v.end());
		for(int i = 1;i < v.size();++i) {
			solve(x, minpop(v[i - 1] + 1, v[i]));
		}
	}
	int ans = 0;
	for(auto & i : map) {
		std::vector<std::pair<ll, ll>> & v = i.second;
		sort(v.begin(), v.end());
		ll right = -1, s0 = 0;
		for(const auto i : v) {
			if(i.first >= right) right = i.first;
			if(i.second >= right){ 
				s0 += i.second - right + 1;
				right = i.second + 1;
			}
		}
		ans = (ans + s0) % mod;
	}
	cout << ans << '\n';
}