#include using namespace std; int main(){ long double p,q; cin>>p>>q; cout<<((1-p)*q