#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, m, i, j, k, cnt = 0, sum = 0, mn = INT_MAX, ind, size, lcm,
                               mx = INT_MIN, diff, num, x, y, z, ee;
  int flag = 0, t = 1;
  string s, str, s1, s2, s3;
  char ch;
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> t;
  while (t--) {
    cin >> x;
    cout << x / 2;
    cout << endl;
  }
}
