#include <bits/stdc++.h> using namespace std; #define ll long long int void mainSolve() { int n; cin>>n; int ans = n - (n/5); cout<<ans<<endl; } int main() { int t; cin>>t; while (t--) { mainSolve(); } return 0; }