#include <bits/stdc++.h>
using namespace std;
void code() {
  long long int n;
  cin >> n;
  if (n % 2 == 0)
    cout << n / 2 << endl;
  else
    cout << (n - 1) / 2 << endl;
}
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int t = 1;
  cin >> t;
  while (t--) {
    code();
  }
  return 0;
}
