#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
int main() {
  int T;
  cin >> T;
  for (int i = 0; i < T; i++) {
    int N;
    cin >> N;
    if (N % 2 == 0) {
      cout << N / 2 << endl;
    } else {
      cout << (N - 1) / 2 << endl;
    }
  }
}
