#include <bits/stdc++.h>
using namespace std;
using vi = vector<int64_t>;
using vvi = vector<vi>;
using ll = int64_t;
using P = pair<ll, ll>;
ll INF = 1000000007;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  ll n;
  cin >> n;
  vi v(n);
  for (int64_t i = 0; i < (int64_t)(n); i++) cin >> v.at(i);
  for (int64_t i = 0; i < (int64_t)(n); i++) cout << v.at(i) / 2 << endl;
}
