#include <bits/stdc++.h>
using namespace std;
const long long N = 300005;
const long long M = 998244353;
vector<long long> v[N];
long long ans = 1;
vector<long long> colour(N, -1);
long long pow1(long long a, long long b) {
  long long res = 1;
  for (long long i = 0; i < b; i++) {
    res = (res * a) % M;
  }
  return res;
}
int main() {
  long long t;
  cin >> t;
  while (t--) {
    long long a;
    cin >> a;
    cout << a / 2 << endl;
  }
}
