#include<bits/stdc++.h>
using namespace std;
#define int long long
void sol(){
int n;
cin >> n;
n /= 2;
int l = n / 2;
int r = n - l;
cout << l * r << endl;
}
signed main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int t = 1;
cin >> t;
while(t--){
sol();
}
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKI2RlZmluZSBpbnQgbG9uZyBsb25nCnZvaWQgc29sKCl7CiAgICBpbnQgbjsKICAgIGNpbiA+PiBuOwogICAgbiAvPSAyOwogICAgaW50IGwgPSBuIC8gMjsKICAgIGludCByID0gIG4gLSBsOwogICAgY291dCA8PCBsICogciA8PCBlbmRsOwp9CnNpZ25lZCBtYWluKCl7CiAgICBpb3NfYmFzZTo6c3luY193aXRoX3N0ZGlvKGZhbHNlKTsKICAgIGNpbi50aWUoTlVMTCk7CiAgICBjb3V0LnRpZShOVUxMKTsKICAgIGludCB0ID0gMTsKICAgIGNpbiA+PiB0OwogICAgd2hpbGUodC0tKXsKICAgICAgICBzb2woKTsKICAgIH0KICAgIHJldHVybiAwOwp9