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 <stdio.h>
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <complex>
#include <deque>
#include <functional>
#include <iostream>
#include <limits.h>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <time.h>
#include <unordered_map>
#include <unordered_set>
#include <vector>

#pragma warning(disable:4996)
#pragma comment(linker, "/STACK:336777216")
using namespace std;

#define mp make_pair
#define all(x) (x).begin(), (x).end()
#define ldb ldouble

typedef tuple<int, int, int> t3;
typedef long long ll;
typedef unsigned long long ull;
typedef double db;
typedef long double ldb;
typedef pair <int, int> pii;
typedef pair <ll, ll> pll;
typedef pair <ll, int> pli;
typedef pair <db, db> pdd;

int IT_MAX = 1 << 18;
const ll MOD = 1000000007;
const int INF = 0x3f3f3f3f;
const ll LL_INF = 0x3f3f3f3f3f3f3f3f;
const db PI = acos(-1);
const db ERR = 1e-10;
#define szz(x) (int)(x).size()
#define rep(i, n) for(int i=0;i<n;i++)
#define Se second
#define Fi first

ll cnt1(ll a) {
	ll rv = 0;
	while (a) {
		if (a % 2) rv++;
		a /= 2;
	}
	return rv;
}
ll getval(ll a, ll b) {
	if (a > b) return LL_INF;
	
	ll rv = cnt1(a);
	for (; a <= b; a += a & (-a)) rv = min(rv, cnt1(a));
	return rv;
}
map < vector<ll>, pll> Mx;
void mpush(vector<ll> Vu, ll K) {
	if (K < 0) return;
	vector <ll> Vu2;
	for (int i = 0; i < Vu.size(); i++) Vu2.push_back(Vu[i] - Vu[0]);
	if (!Mx.count(Vu2)) Mx[Vu2] = pll(LL_INF, -1);
	Mx[Vu2].second = max(Mx[Vu2].second, Vu[0]);
	Mx[Vu2].first = min(Mx[Vu2].first, max(0ll, Vu[0] - K));
}

vector<ll> Vin;
int main() {
	int N, i, j;
	ll K;
	scanf("%d %lld", &N, &K);
	for (i = 0; i < N; i++) {
		ll t;
		scanf("%lld", &t);
		Vin.push_back(t);
	}
	sort(all(Vin));
	Vin.erase(unique(all(Vin)), Vin.end());

	j = 0;
	for (ll t = 1;; t *= 2) {
		vector <ll> Vu;
		vector <pll> Vu2;
		for (i = 0; i < N; i++) {
			Vu.push_back(Vin[i] / t);
			Vu2.emplace_back(Vin[i] % t, i);
		}
		sort(all(Vu2));
		mpush(Vu, K - j);
		for (i = 0; i < N; i++) {
			if (Vu[Vu2[i].second]-- == 0) break;
			if (i + 1 == N || Vu2[i].first != Vu2[i + 1].first) {
				ll s = Vu2[i].first + 1;
				ll e = t - 1;
				if (i + 1 != N) e = Vu2[i + 1].first;
				mpush(Vu, K - j - getval(s, e));
			}
		}
		if (t > Vin.back()) break;
		j++;
	}
	
	ll ans = 0;
	for (auto it : Mx) {
		//printf("(");
		//for (auto it2 : it.first) printf("%lld ", it2);
		//printf(") : %lld %lld\n", it.second.first, it.second.second);
		ans += it.second.second - it.second.first + 1;
		ans %= MOD;
	}
	return !printf("%lld\n", ans);
}