#include <bits/stdc++.h>
using namespace std;
const long long maxN = 100009;
const long long inf = (long long)1e18 + 1;
long long N;
void solve() {
  long long i, j, k;
  cin >> N;
  cout << (N / 2) << "\n";
}
signed main() {
  if (true) {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
  }
  long long T = 1;
  if (true) {
    cin >> T;
  }
  while (T--) {
    solve();
  }
}
