#include <bits/stdc++.h>
using namespace std;
const int maxn = 100;
int c[maxn][maxn];
int main(int argc, char const *argv[]) {
  int t;
  scanf("%d", &t);
  while (t--) {
    int x;
    scanf("%d", &x);
    printf("%d\n", x / 2);
  }
  return 0;
}
