#include #include using namespace std; #define REP(i,a,b) for(int i=a;i<(int)b;i++) #define rep(i,n) REP(i,0,n) double P[3]; double dp[22][15]; double solve(int depth, int num) { if(depth == 0) { return num; } double& ret = dp[depth][num]; if(ret >= 0) { return ret; } if(num == 1) { return ret = solve(depth-1, 1)*(1.0-P[0]); } ret = 0.; rep(S, 1<> year; rep(i, 3) { cin >> P[i]; P[i] /= 100.0; } rep(i, 22) rep(j, 15) { dp[i][j] = -1.0; } printf("%.9lf\n", solve(80-year, 14) * 2.0); return 0; }