#include using namespace std; #define int long long #define FASTIO ios_base::sync_with_stdio(false); cin.tie(NULL); #define all(x) (x).begin(), (x).end() #define pb push_back #define pii pair #define ff first #define ss second #define PI acos(-1) #define ld long double template bool chmin(T& a, const T& b) {return a>b? a=b, true:false;} template bool chmax(T& a, const T& b) {return a> n; m = __builtin_popcountll(n); if(m == 1){ cout << n << '\n'; return; } int all = (1ll<0;i--){ int t = (1ll<= 0)ans += t, need -= a[i-1]; else continue; } } //~ cout << need << '\n'; cout << ans << '\n'; return; } // 35184372088831 // 36028797018963967 // 1073741823 signed main(){ FASTIO; //~ #define MULTITEST 1 #if MULTITEST int _T; cin >> _T; for(int T_CASE = 1; T_CASE <= _T; T_CASE++) solve(T_CASE); #else solve(1); #endif return 0; } /* 7 000 001 010 011 100 101 110 111 */