#include <bits/stdc++.h>
using namespace std;
long long mod = 1000000007;
const long long num = 1000000000;
int main() {
  long long q = 1;
  cin >> q;
  while (q--) {
    long long n;
    cin >> n;
    cout << n / 2 << endl;
  }
  return 0;
}
