#include using namespace std; using ll = long long; int main(void){ double n, r; cin >> n >> r; vector bank(n + 1, 0); bank[1] = 100; double sum = 0; for (int i = 1; i <= n; i++) { if (i != n) bank[i + 1] = (1 - r) * bank[i]; sum += bank[i]; } cout << fixed << setprecision(10) << sum << endl; return 0; }