#include #include #include using namespace std; int main(){ double n,r; cin >> n >> r; vector v(n + 1); v[1] = 100; for(int i = 1;i < n;i++){ v[i + 1] = (1 - r) * v[i]; v[i] *= r; } double ans = 0; for(int i = 1;i <= n;i++){ ans += v[i]; } cout << fixed << setprecision(20) << ans << endl; }