#include<iostream> #include<cstdlib> #include<cstdio> #include<cstring> using namespace std; int main(){ long long t,x,y; cin>>t; while(t--){ cin>>x; y=x/958; cout<<y<<endl; } }