#include using namespace std; #define pb push_back #define mp make_pair #define ALL(x) (x).begin(),(x).end() typedef long long ll; typedef unsigned long long ull; typedef pair pii; const int maxn = 3e5 + 70; const int INF = 0x3f3f3f3f; const ll inf = 0x3f3f3f3f3f3f3f3f; const int MOD = 1e9 + 7; const double eps = 1e-7; const double PI = acos(-1.0); int n, m, k; double a[11]={4.3, 4.0, 3.7, 3.3, 3.0, 2.7, 2.3, 2.0, 1.7, 1.0, 0}; int b[11]={95,90,85,80,75,70,67,65,62,60,0}; vector> V; void init(){ for(int i=0;i<11;i++){ for(int j=i;j<11;j++){ for(int k=j;k<11;k++){ for(int l=k;l<11;l++){ V.pb(mp(a[i]+a[j]+a[k]+a[l],b[i]+b[j]+b[k]+b[l])); } } } } } int main(){ //freopen("in.txt", "r", stdin); init(); int T; cin>>T; while(T--){ cin>>n; double ans = 0; for(int i=0;i=V[i].second) ans = max(ans, V[i].first); } printf("%.1f\n",ans); } return 0; }