#include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; while(T--){ long long L; cin >> L; long long p2 = 1; while(L%2 == 0) L >>= 1,p2 <<= 1; if(L == 1){ L *= 4,p2 /= 4; cout << 3*p2 << " " << 4*p2 << " " << 5*p2 << "\n"; continue; } long long n = L/2,m = L-n; cout << L*p2 << " " << 2*n*m*p2 << " " << (n*n+m*m)*p2 << "\n"; } }