#include <bits/stdc++.h>
using namespace std;
const int MAXN = 10e6 + 10, MOD = 1e9 + 7, INF = 1e9 + 5;
inline void solve() {
  int n;
  cin >> n;
  cout << (n >> 1) << '\n';
}
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
}
