#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a using namespace __gnu_pbds; template using gmap = cc_hash_table >; //INSERT ABOVE HERE signed main(){ using D = double; using M = gmap; int a; cin>>a; a=80-a; D p[3]; for(int i=0;i<3;i++) cin>>p[i],p[i]/=100; const int t=14; int s=1< co(s); vector > vs(s,vector(t+2)); for(int b=0;b>i)&1; for(int b=0;b po(t); for(int i=0;i>i)&1) continue; po[i]=p[vs[b][i]+vs[b][i+2]]; } for(int nb=b;nb;nb=(nb-1)&b){ D &res=co[b][nb]; res=1.0; for(int i=0;i>i)&1) continue; if((~nb>>i)&1) res*=po[i]; else res*=1.0-po[i]; } } } vector dp(s,0); dp[s-1]=1.0; for(int i=0;i nx(s,0); for(int b=0;b