#include <bits/stdc++.h>
using namespace std;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    int N; cin >> N;
    double R; cin >> R;
    double answer = 0,now = 100;
    for(int i=0; i<N; i++){
        answer += now;
        now *= (1.0-R);
    }    
    cout << setprecision(16) << answer << endl;
}