#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    int n;
    cin >> n;
    if (n % 2 == 0) {
      cout << n / 2 << endl;
    } else {
      cout << (n - 1) / 2 << endl;
    }
  }
}
