#include <bits/stdc++.h>
using namespace std;
inline int dcmp(double a, double b) {
  return fabs(a - b) < (1e-9) ? 0 : a < b ? -1 : +1;
}
int main() {
  int tc;
  scanf("%d", &tc);
  while (tc--) {
    int n;
    scanf("%d", &n);
    printf("%d\n", n / 2);
  }
  return 0;
}
