#include <bits/stdc++.h>
using namespace std;
long long ans[121340], visited[121340];
void solve() {
  long long n;
  cin >> n;
  cout << n / 2 << endl;
}
int main() {
  long long t = 1, x, y, n;
  cin >> t;
  while (t--) solve();
}
