#include #define LL long long #define PII pair #define mp make_pair #define fi first #define se second using namespace std; const int maxn = 1e5+10; const int score[11] = {95, 90, 85, 80, 75, 70, 67, 65, 62, 60, 0}; const double cnt[11] = {4.3, 4.0, 3.7, 3.3, 3.0, 2.7, 2.3, 2.0 ,1.7, 1.0, 0.0}; void work(){ int sum; scanf("%d",&sum); double ans = 0.0; for (int i=0;i<11;i++) for (int j=0;j<11;j++) for (int k=0;k<11;k++) for (int l=0;l<11;l++){ int add = score[i] + score[j] + score[k] +score[l]; if (add > sum) continue; double tmp = cnt[i] + cnt[j] + cnt[k] + cnt[l]; if (tmp > ans) ans = tmp; } printf("%.1f\n", ans); } void vgeler(){ int test; scanf("%d",&test); while (test--) work(); } int main(){ vgeler(); return 0; }