/* -*- coding: utf-8 -*- * * 1232.cc: No.1232 2^x = x - yukicoder */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; /* constant */ const int MAX_N = 1000; /* typedef */ typedef long long ll; /* global variables */ /* subroutines */ /* main */ int main() { int n; scanf("%d", &n); while (n--) { int pi; scanf("%d", &pi); if (pi == 2) puts("2"); else printf("%lld\n", (ll)(pi - 1) * (pi - 1)); } return 0; }