#include #include using namespace std; typedef long long int ll; const ll M=1e9+7; int main() { int n,k;cin>>n>>k; ll a[100]={}; for(int i=0;i>a[i]; sort(a,a+k); a[k++]=(1LL<a[i]){c=0;break;} ll tmp=now^a[i]; int cou=0; while(tmp) { tmp=tmp&(tmp-1); cou++; } while(cou) { c*=cou--; c%=M; } now=a[i]; } cout<