#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e18;
long long i, b, j, k, q, n, m;
vector<long long> a;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    a.clear();
    cin >> n;
    if (n % 2 != 0) n--;
    cout << n / 2 << "\n";
  }
  return 0;
}
