#include using namespace std; using ll=long long; int main(){ int t;cin>>t; for(int tt=0;tt>n;ll bit=0; for(int i=0;i<=39;i++){ ll e=n; bit+=(n/(2LL<