#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int f = 0;
    for (int i = n; i >= 1; --i) {
      int j = i, c = 0;
      while (j <= n) {
        ++c;
        j += i;
        if (c == 2) {
          f = 1;
          cout << i << endl;
          break;
        }
      }
      if (f == 1) break;
    }
  }
  return 0;
}
