#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
using vi = vector<int>;
using vl = vector<ll>;
using vs = vector<string>;
using vc = vector<char>;
using vb = vector<bool>;
using vd = vector<double>;
vi dir = {-1, 0, 1, 0, -1, -1, 1, 1, -1};
int main() {
  ll t;
  cin >> t;
  for (int _ = 0, __len = (t); _ < __len; ++_) {
    ll n;
    cin >> n;
    cout << n / 2 << endl;
  }
}
