#include using namespace std; #define ll long long int T, cnt, a[233], b[233]; int main() { a[++cnt]=95, b[cnt]=43; a[++cnt]=90, b[cnt]=40; a[++cnt]=85, b[cnt]=37; a[++cnt]=80, b[cnt]=33; a[++cnt]=75, b[cnt]=30; a[++cnt]=70, b[cnt]=27; a[++cnt]=67, b[cnt]=23; a[++cnt]=65, b[cnt]=20; a[++cnt]=62, b[cnt]=17; a[++cnt]=60, b[cnt]=10; a[++cnt]=0, b[cnt]=0; scanf("%d", &T); while(T--){ int x, ans=0; scanf("%d", &x); for(int i1=1; i1<=cnt; ++i1) for(int i2=1; i2<=cnt; ++i2) for(int i3=1; i3<=cnt; ++i3) for(int i4=1; i4<=cnt; ++i4) if(a[i1]+a[i2]+a[i3]+a[i4]<=x) ans=max(ans, b[i1]+b[i2]+b[i3]+b[i4]); printf("%d.%d\n", ans/10, ans%10); } return 0; }