#include using namespace std; #define ll long long #define rep(i,l,r) for(ll i=(l);i<(r);i++) ll mem[64][64],cnt[64]; ll nCm(ll n,ll m){ if(n>n; for(int i=0;n;i++){ a=1; power=0; while(a<<1<=n+1){ a<<=1; power++; } for(int j=0;j<=power;j++){ cnt[j+i]+=nCm(power,j); } } for(int i=2;cnt[i];i++){ ans+=cnt[i]*((int)pow(2,i-1)-1); ans%=1000000007; } cout<