#include using namespace std; double res; void dfs(int x,int sum,double ans){ if(x==5){ res=max(res,ans); return ; } if(sum>=95)dfs(x+1,sum-95,ans+4.3); if(sum>=90)dfs(x+1,sum-90,ans+4.0); if(sum>=85)dfs(x+1,sum-85,ans+3.7); if(sum>=80)dfs(x+1,sum-80,ans+3.3); if(sum>=75)dfs(x+1,sum-75,ans+3.0); if(sum>=70)dfs(x+1,sum-70,ans+2.7); if(sum>=67)dfs(x+1,sum-67,ans+2.3); if(sum>=65)dfs(x+1,sum-65,ans+2.0); if(sum>=62)dfs(x+1,sum-62,ans+1.7); if(sum>=60)dfs(x+1,sum-60,ans+1.0); if(sum>=0)dfs(x+1,sum,ans); } int main(){ int T; cin>>T; int n; while(T--){ cin>>n; res=0; dfs(1,n,0); printf("%.1f\n",res); } return 0; }