#include using namespace std; void fast_io() { ios::sync_with_stdio(false); std::cin.tie(nullptr); } int main() { fast_io(); int n; long double p; cin >> n >> p; if (n >= 200) { cout << 1 << endl; return 0; } cout << setprecision(16) << fixed << 1 - pow(1 - p, n) << endl; }