#include <bits/stdc++.h>
inline long long read() {
  char c = getchar();
  long long x = 0, s = 1;
  while (c < '0' || c > '9') {
    if (c == '-') s = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    x = x * 10 + c - '0';
    c = getchar();
  }
  return x * s;
}
using namespace std;
const int N = 3e5 + 10;
const long long INFINF = 0x7f7f7f7f7f7f7f;
const int INF = 0x3f3f3f3f;
const double EPS = 1e-7;
const long long mod = 1e9 + 7;
const double II = acos(-1);
const double PP = (II * 1.0) / (180.00);
signed main() {
  std::ios::sync_with_stdio(false);
  cin.tie(0), cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    if (n % 2 != 0) n--;
    cout << n / 2 << endl;
  }
}
