#include <bits/stdc++.h>
using namespace std;
int n;
void c_p_c() {}
int gcd(int a, int b) {
  if (b == 0)
    return a;
  else
    return gcd(b, a % b);
}
int main() {
  int i;
  c_p_c();
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int ma = 1;
    if (n == 1) {
      cout << 1 << "\n";
    } else if (n % 2)
      cout << (n - 1) / 2 << "\n";
    else
      cout << n / 2 << "\n";
  }
  return 0;
}
