#include <bits/stdc++.h>
using namespace std;
vector<long long> a;
vector<long long> b;
long long n;
void solve() {
  a.clear();
  b.clear();
  cin >> n;
  cout << n / 2 << "\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
