#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    (x % 2 == 1) ? cout << (x - 1) / 2 << endl : cout << x / 2 << endl;
  }
}
