#include <bits/stdc++.h>
using namespace std;
const int N = 5e4 + 9, oo = 1e7;
void solve() {
  int n;
  cin >> n;
  cout << n / 2 << endl;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  int t = 1;
  cin >> t;
  while (t--) solve();
}
