#include<bits/stdc++.h>
using namespace std;
bool isprime(int n){
for(int i=2;i*i<=n;i++){
if(n % i == 0) return false;
}
return true;
}
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
int t,n; cin >> t;
while(t--){
cin >> n;
cout << n/2 << endl;
}
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmJvb2wgaXNwcmltZShpbnQgbil7Cglmb3IoaW50IGk9MjtpKmk8PW47aSsrKXsKCQlpZihuICUgaSA9PSAwKQlyZXR1cm4gZmFsc2U7Cgl9CglyZXR1cm4gdHJ1ZTsKfQppbnQgbWFpbigpewoJaW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbygwKTsgY2luLnRpZSgwKTsKCWludCB0LG47CWNpbiA+PiB0OwoJd2hpbGUodC0tKXsKCQljaW4gPj4gbjsKCQljb3V0IDw8IG4vMiA8PCBlbmRsOwoJfQoJcmV0dXJuIDA7Cn0=