#include #include using namespace std; using namespace atcoder; using ll = long long; using ld = long double; using mint = modint998244353; void solve() { ll N; cin >> N; cout << (N % 2 ? 0: N / 2 * (N - 2)) << endl; } int main() { int T; cin >> T; while (T--) { solve(); } return 0; }