#include <bits/stdc++.h>
using namespace std;
#define ll long long
// Function to print a __int128_t value
void print128(__int128_t x) {
if (x == 0) {
cout << 0;
return;
}
if (x < 0) {
cout << '-';
x = -x;
}
// Recursively print digits
string res;
while (x > 0) {
res.push_back('0' + (x % 10));
x /= 10;
}
reverse(res.begin(), res.end());
cout << res;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int t = 1;
cin >> t;
while (t--) {
ll n;
cin >> n;
__int128_t x = (__int128_t)n * (__int128_t)n;
// Custom print function for __int128_t
print128(x);
cout << "\n";
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiNkZWZpbmUgbGwgbG9uZyBsb25nCgovLyBGdW5jdGlvbiB0byBwcmludCBhIF9faW50MTI4X3QgdmFsdWUKdm9pZCBwcmludDEyOChfX2ludDEyOF90IHgpIHsKICAgIGlmICh4ID09IDApIHsKICAgICAgICBjb3V0IDw8IDA7CiAgICAgICAgcmV0dXJuOwogICAgfQoKICAgIGlmICh4IDwgMCkgewogICAgICAgIGNvdXQgPDwgJy0nOwogICAgICAgIHggPSAteDsKICAgIH0KCiAgICAvLyBSZWN1cnNpdmVseSBwcmludCBkaWdpdHMKICAgIHN0cmluZyByZXM7CiAgICB3aGlsZSAoeCA+IDApIHsKICAgICAgICByZXMucHVzaF9iYWNrKCcwJyArICh4ICUgMTApKTsKICAgICAgICB4IC89IDEwOwogICAgfQogICAgcmV2ZXJzZShyZXMuYmVnaW4oKSwgcmVzLmVuZCgpKTsKICAgIGNvdXQgPDwgcmVzOwp9CgppbnQgbWFpbigpIHsKICAgIGlvczo6c3luY193aXRoX3N0ZGlvKDApOwogICAgY2luLnRpZSgwKTsKICAgIGludCB0ID0gMTsKICAgIGNpbiA+PiB0OwogICAgd2hpbGUgKHQtLSkgewogICAgICAgIGxsIG47CiAgICAgICAgY2luID4+IG47CiAgICAgICAgX19pbnQxMjhfdCB4ID0gKF9faW50MTI4X3QpbiAqIChfX2ludDEyOF90KW47CiAgICAgICAgCiAgICAgICAgLy8gQ3VzdG9tIHByaW50IGZ1bmN0aW9uIGZvciBfX2ludDEyOF90CiAgICAgICAgcHJpbnQxMjgoeCk7CiAgICAgICAgY291dCA8PCAiXG4iOwogICAgfQogICAgcmV0dXJuIDA7Cn0K