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<array>
#include<map>
#include<stdio.h>
#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<string.h>

#ifdef LOCAL
#define eprintf(...) fprintf(stderr, __VA_ARGS__)
#else
#define NDEBUG
#define eprintf(...) do {} while (0)
#endif
#include<cassert>

using namespace std;

typedef long long LL;
typedef vector<int> VI;

#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define EACH(i,c) for(__typeof((c).begin()) i=(c).begin(),i##_end=(c).end();i!=i##_end;++i)

template<class T> inline void amin(T &x, const T &y) { if (y<x) x=y; }
template<class T> inline void amax(T &x, const T &y) { if (x<y) x=y; }
template<class Iter> void rprintf(const char *fmt, Iter begin, Iter end) {
    for (bool sp=0; begin!=end; ++begin) { if (sp) putchar(' '); else sp = true; printf(fmt, *begin); }
    putchar('\n');
}

LL f(LL a, LL b) {
    if (a == 0) return 0;
    a--;
    for (int i=61; i>=0; i--) {
	if ((a>>i&1) != (b>>i&1)) {
	    assert(~a>>i&1);
	    assert(b>>i&1);
	    return __builtin_popcountll(b>>i);
	}
    }
    assert(false);
    return 0;
}

using Ar = array<LL, 200>;
map<Ar, vector<pair<LL, LL> > > mp;

int N;
LL K;
LL A[211];
LL B[211];
LL C[211];

Ar ar;

const LL MOD = 1e9+7;

void MAIN() {
    scanf("%d%lld", &N, &K);
    REP (i, N) scanf("%lld", A+i);

    sort(A, A+N);

    REP (s, 61) {
	LL mask = (1LL<<s)-1;
	REP (i, N) {
	    B[i] = A[i] & mask;
	}
	sort(B, B+N);
	int len = unique(B, B+N) - B;

	LL prv = 0;
	REP (i, len) {
	    LL cst = s + f(prv, B[i]);
	    if (cst <= K) {
		LL w = 1LL<<61;
		REP (k, N) {
		    C[k] = A[k] >> s;
		    if ((A[k]&mask) < B[i]) C[k]--;
		    amin(w, C[k]);
		}
		if (w < 0) break;

		REP (k, N-1) {
		    ar[k] = C[k+1] - C[k];
		}
		LL g = min(w, K-cst);
		mp[ar].emplace_back(w-g, w+1);
	    }
	    prv = B[i] + 1;
	}

	if ((A[N-1]>>s) == 0) break;
    }

    LL ans = 0;
    EACH (e, mp) {
	vector<pair<LL, LL> > &v = e->second;
	sort(v.begin(), v.end());
	pair<LL, LL> cur(-1, -1);
	EACH (f, v) {
	    if (cur.second < f->first) {
		ans += cur.second - cur.first;
		ans %= MOD;
		cur = *f;
	    } else {
		amax(cur.second, f->second);
	    }
	}
	ans += cur.second - cur.first;
	ans %= MOD;
    }
    printf("%lld\n", ans);
}

int main() {
    int TC = 1;
//    scanf("%d", &TC);
    REP (tc, TC) MAIN();
    return 0;
}