#include <bits/stdc++.h>
using namespace std;
bool forms(long long a, long long b, long long c) {
  if ((a * a) + (b * b) == (c * c)) return true;
  return false;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t, n;
  cin >> t;
  while (t--) {
    cin >> n;
    cout << n / 2 << endl;
  }
  return 0;
}
