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 pair<int, int> pii;
typedef long long ll;
typedef vector<int> vi;

#define pb push_back
#define eb emplace_back
#define mp make_pair
#define fi first
#define se second
#define rep(i,n) rep2(i,0,n)
#define rep2(i,m,n) for(int i=m;i<(n);i++)
#define ALL(c) (c).begin(),(c).end()
#define dump(x) cout << #x << " = " << (x) << endl
constexpr ll TEN(int n) { return (n == 0) ? 1 : 10 * TEN(n-1); }

template<class T, class U>
ostream& operator<<(ostream& os, const pair<T, U>& p) {
	os<<"("<<p.first<<","<<p.second<<")";
	return os;
}

template<class T>
ostream& operator<<(ostream& os, const vector<T>& v) {
	os<<"{";
	rep(i, v.size()) {
		if (i) os<<",";
		os<<v[i];
	}
	os<<"}";
	return os;
}

const ll MOD = 1000000007;

ll getmin(ll l, ll r) {
	if (l == -1) return 0ll;

	vi vl, vr;
	while (l > 0) {
		vl.pb(l & 1);
		l >>= 1;
	}
	while (r > 0) {
		vr.pb(r & 1);
		r >>= 1;
	}
	while (vl.size() < vr.size()) {
		vl.pb(0);
	}
	int sz = vl.size();
	ll c = 0;
	for (int i = sz-1; i >= 0; --i) {
		if (vl[i] != vr[i]) {
			c = c * 2 + 1;
			c <<= i;
			break;
		} else {
			c = c * 2 + vl[i];
		}
	}
	return c;
}

int main() {
	int N; ll K;
	cin >> N >> K;
	vector<ll> X(N);
	rep(i, N) cin >> X[i];
	sort(ALL(X));

	map<vector<ll>, vector<pair<ll,ll>>> T;

	for (int t = 0; t <= 60; ++t) {
		vector<ll> cand = {-1};
		rep(i, N) {
			cand.pb(X[i] % (1ll << t));
		}
		sort(ALL(cand));
		rep(i, (int)cand.size()-1) {
			if (cand[i] != cand[i+1]) {
				ll l = cand[i], r = cand[i+1];
				ll opt = getmin(l, r);
				ll ope = __builtin_popcountll(opt) + t;
				if (ope > K) continue;
				auto nx = X;
				rep(j, N) {
					nx[j] = (X[j] - opt) >> t;
				}

				ll u = min(K - ope, nx[0]) - nx[0];
				ll d = -nx[0];

				for (int j = N-1; j >= 0; --j) {
					nx[j] -= nx[0];
				}

				T[nx].eb(d, u);
			}
		}
	}

	ll ans = 0;
	for (auto& t : T) {
		auto& vec = t.se;
		sort(ALL(vec));
		ll r = -TEN(18);

		rep(i, vec.size()) {
			if (vec[i].se <= r) {
				continue;
			}
			if (vec[i].fi > r) {
				ans += vec[i].se - vec[i].fi + 1;
			} else {
				ans += vec[i].se - r;
			}

			r = max(r, vec[i].se);
			ans %= MOD;
		}

		//cout << t.fi << ", " << t.se << endl;
	}

	cout << ans << endl;

	return 0;
}