#include<iostream> #include<algorithm> #include<string> #include<stdio.h> using namespace std; int main() { int t; cin>>t; while(t--) { int n; cin>>n; cout<<(int)n/958<<endl; } }