#include <bits/stdc++.h>
int main() {
  int32_t num_tests;
  std::cin >> num_tests;
  for (int32_t t = 0; t < num_tests; t++) {
    int32_t n;
    std::cin >> n;
    std::cout << n / 2 << "\n";
  }
  return 0;
}
