#include <iostream> #include <cstdio> using namespace std; int main() { int t; cin >> t; while(t--){ int a; cin >> a; cout << a/958 << endl; } }