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