#include <bits/stdc++.h>
using namespace std;
const int N = 100010, M = 200010;
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    int n;
    scanf("%d", &n);
    int k = max(n / 2, 1);
    printf("%d\n", k);
  }
  return 0;
}
