#include using namespace std; #include using namespace atcoder; using ll = long long; using mint = modint998244353; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; while(T--) { ll L; cin >> L; ll p, q, x, y; if(L % 2 == 0) { p = L * L / 2, q = 2; }else { p = L * L, q = 1; } x = (p - q) / 2, y = (p + q) / 2; cout << L << " " << x << " " << y << endl; assert(y * y == L * L + x * x); } }