#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int t, n;
  cin >> t;
  while (t--) {
    cin >> n;
    cout << n / 2 << '\n';
  }
  return 0;
}
