#include <bits/stdc++.h>
using namespace std;
int add(int a, int b) {
  int temp = a + b;
  if (temp < 0)
    temp = 1000000007 + temp;
  else if (temp > 1000000007)
    temp = temp % 1000000007;
  return temp;
}
int mul(int a, int b) {
  long long temp = (1ll * a * b);
  if (temp < 0)
    temp = 1000000007 + temp;
  else if (temp >= 1000000007)
    temp = temp % 1000000007;
  return temp;
}
void solve() {
  int n;
  cin >> n;
  printf("%d\n", n / 2);
}
void io() {}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  int tc = 0;
  while (t--) {
    tc++;
    solve();
  }
  return 0;
}
