#include using namespace std; int main(){ double x, y; scanf("%lf%lf", &x, &y); printf("%.5f\n", x * (1 - y)); return 0; }