#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int a;
    cin >> a;
    int max = 0;
    if (a % 2 == 0) {
      cout << a / 2 << "\n";
    } else {
      cout << (a - 1) / 2 << "\n";
    }
  }
}
