// yukicoder 159 (http://yukicoder.me/problems/405) #include int main() { double p, q; scanf( "%lf%lf", &p, &q ); puts( (1-p)*q