#include using namespace std; int main(){ int N; cin >> N; double R; cin >> R; double ans = 0; double x = 100; for (int i = 0; i < N; i++){ ans += x; x *= 1 - R; } cout << fixed << setprecision(20) << ans << endl; }