#include <bits/stdc++.h>
using namespace std;
int t, n, m, k, a[300010], q, l, r;
int32_t main() {
  ios_base ::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
  cin >> t;
  for (; t; t--) {
    cin >> n;
    int res = 0;
    for (int i = 1; i <= n; i++) {
      if (2 * i <= n) {
        res = max(res, i);
      } else {
        break;
      }
    }
    cout << res << "\n";
  }
  return 0;
}
