#include #define rep(i, n) for (int i = 0; i < (int)n; ++i) using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; double r; cin >> r; double x = 100; double ans = x; rep(i,n-1){ x *= (1-r); ans += x; } cout << fixed << setprecision(20) << ans << endl; }