#include <bits/stdc++.h>
using namespace std;
void perform() {
  int n;
  cin >> n;
  if (n == 2) cout << 1 << endl;
  if (n == 3) cout << 1 << endl;
  if (n > 3) {
    if (n % 2 == 0) cout << n / 2 << endl;
    if (n % 2 == 1) cout << (n - 1) / 2 << endl;
  }
}
int main() {
  int n;
  cin >> n;
  while (n--) perform();
  return 0;
}
