#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; while(T--){ long long N; cin >> N; long long X = 0,Y = 0; auto dfs = [&](auto dfs,int d,bool ok,long long x,long long y) -> void { if(d == -1){ if(((__int128_t)X)*Y < ((__int128_t)x)*y) X = x,Y = y; return; } long long now = 1LL<